OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/login/user_manager.h" | 5 #include "chrome/browser/chromeos/login/user_manager.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/chromeos/login/user_manager_impl.h" | 8 #include "chrome/browser/chromeos/login/user_manager_impl.h" |
9 | 9 |
10 namespace chromeos { | 10 namespace chromeos { |
11 | 11 |
12 // static | 12 // static |
13 const char UserManager::kStubUser[] = "stub-user@example.com"; | 13 const char UserManager::kStubUser[] = "stub-user@example.com"; |
14 | 14 |
15 // static | 15 // static |
16 const char UserManager::kLocallyManagedUserDomain[] = | 16 const char UserManager::kLocallyManagedUserDomain[] = |
17 "locally-managed.localhost"; | 17 "locally-managed.localhost"; |
18 | 18 |
19 // static | |
20 const char UserManager::kKioskAppUserDomain[] = "kiosk-apps.localhost"; | |
21 | |
22 static UserManager* g_user_manager = NULL; | 19 static UserManager* g_user_manager = NULL; |
23 | 20 |
24 UserManager::Observer::~Observer() { | 21 UserManager::Observer::~Observer() { |
25 } | 22 } |
26 | 23 |
27 UserManager::UserSessionStateObserver::~UserSessionStateObserver() { | 24 UserManager::UserSessionStateObserver::~UserSessionStateObserver() { |
28 } | 25 } |
29 | 26 |
30 // static | 27 // static |
31 void UserManager::Initialize() { | 28 void UserManager::Initialize() { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 ScopedTestUserManager::ScopedTestUserManager() { | 70 ScopedTestUserManager::ScopedTestUserManager() { |
74 UserManager::Initialize(); | 71 UserManager::Initialize(); |
75 } | 72 } |
76 | 73 |
77 ScopedTestUserManager::~ScopedTestUserManager() { | 74 ScopedTestUserManager::~ScopedTestUserManager() { |
78 UserManager::Get()->Shutdown(); | 75 UserManager::Get()->Shutdown(); |
79 UserManager::Destroy(); | 76 UserManager::Destroy(); |
80 } | 77 } |
81 | 78 |
82 } // namespace chromeos | 79 } // namespace chromeos |
OLD | NEW |