blob: ab226126890fab228222e4e8d263d90320527a1a [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/shared/immersive_context.h"
#include "base/logging.h"
namespace ash {
// static
ImmersiveContext* ImmersiveContext::instance_ = nullptr;
ImmersiveContext::ImmersiveContext() {
DCHECK(!instance_);
instance_ = this;
}
ImmersiveContext::~ImmersiveContext() {
DCHECK_EQ(instance_, this);
instance_ = nullptr;
}
} // namespace ash