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