Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "ash/wm/overview/scoped_overview_animation_settings_factory.h" | |
| 6 | |
| 7 #include "base/logging.h" | |
| 8 | |
| 9 namespace ash { | |
| 10 | |
| 11 // static | |
| 12 ScopedOverviewAnimationSettingsFactory* | |
| 13 ScopedOverviewAnimationSettingsFactory::instance_ = nullptr; | |
| 14 | |
| 15 // static | |
| 16 ScopedOverviewAnimationSettingsFactory* | |
| 17 ScopedOverviewAnimationSettingsFactory::Get() { | |
| 18 return instance_; | |
| 19 } | |
| 20 | |
| 21 ScopedOverviewAnimationSettingsFactory:: | |
| 22 ScopedOverviewAnimationSettingsFactory() { | |
| 23 DCHECK(!instance_); | |
| 24 instance_ = this; | |
| 25 } | |
| 26 ScopedOverviewAnimationSettingsFactory:: | |
|
James Cook
2016/05/27 00:02:51
nit: blank line above
sky
2016/05/27 03:18:03
Done.
| |
| 27 ~ScopedOverviewAnimationSettingsFactory() { | |
| 28 DCHECK_EQ(instance_, this); | |
| 29 instance_ = nullptr; | |
| 30 } | |
| 31 | |
| 32 } // namespace ash | |
| OLD | NEW |