Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: ash/common/wm/overview/scoped_overview_animation_settings_factory.cc

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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/common/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
27 ScopedOverviewAnimationSettingsFactory::
28 ~ScopedOverviewAnimationSettingsFactory() {
29 DCHECK_EQ(instance_, this);
30 instance_ = nullptr;
31 }
32
33 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698