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

Side by Side Diff: athena/screen_lock/screen_lock_manager_base.cc

Issue 863033002: Delete athena/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 2014 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 "athena/screen_lock/screen_lock_manager_base.h"
6
7 #include "base/logging.h"
8
9 namespace athena {
10 namespace {
11
12 ScreenLockManager* instance = nullptr;
13
14 } // namespace
15
16 ScreenLockManagerBase::ScreenLockManagerBase() {
17 DCHECK(!instance);
18 instance = this;
19 }
20
21 ScreenLockManagerBase::~ScreenLockManagerBase() {
22 DCHECK_EQ(instance, this);
23 instance = nullptr;
24 }
25
26 // static
27 ScreenLockManager* ScreenLockManager::Get() {
28 return instance;
29 }
30
31 // static
32 void ScreenLockManager::Shutdown() {
33 if (instance) {
34 delete instance;
35 DCHECK(!instance);
36 }
37 }
38
39 } // namespace athena
OLDNEW
« no previous file with comments | « athena/screen_lock/screen_lock_manager_base.h ('k') | athena/screen_lock/shell/shell_screen_lock_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698