| Index: ash/wm/immersive_handler_factory.cc
|
| diff --git a/ash/wm/immersive_handler_factory.cc b/ash/wm/immersive_handler_factory.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fd4a4c636f35186c61cb9674b0f0447b97bbabdd
|
| --- /dev/null
|
| +++ b/ash/wm/immersive_handler_factory.cc
|
| @@ -0,0 +1,24 @@
|
| +// 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/wm/immersive_handler_factory.h"
|
| +
|
| +#include "base/logging.h"
|
| +
|
| +namespace ash {
|
| +
|
| +// static
|
| +ImmersiveHandlerFactory* ImmersiveHandlerFactory::instance_ = nullptr;
|
| +
|
| +ImmersiveHandlerFactory::ImmersiveHandlerFactory() {
|
| + DCHECK(!instance_);
|
| + instance_ = this;
|
| +}
|
| +
|
| +ImmersiveHandlerFactory::~ImmersiveHandlerFactory() {
|
| + DCHECK_EQ(instance_, this);
|
| + instance_ = nullptr;
|
| +}
|
| +
|
| +} // namespace ash
|
|
|