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 // Should match cros constant in platform/libchromeos/chromeos/cryptohome.h | 16 // Should match cros constant in platform/libchromeos/chromeos/cryptohome.h |
17 const char UserManager::kGuestUserName[] = "$guest"; | 17 const char UserManager::kGuestUserName[] = "$guest"; |
18 | 18 |
19 // static | 19 // static |
20 const char UserManager::kLocallyManagedUserDomain[] = | 20 const char UserManager::kLocallyManagedUserDomain[] = |
21 "locally-managed.localhost"; | 21 "locally-managed.localhost"; |
22 | 22 |
23 // static | |
24 const char UserManager::kKioskAppUserDomain[] = "kiosk-apps.localhost"; | |
25 | 23 |
26 // static | 24 // static |
27 const char UserManager::kRetailModeUserName[] = "demouser@"; | 25 const char UserManager::kRetailModeUserName[] = "demouser@"; |
28 | |
29 static UserManager* g_user_manager = NULL; | 26 static UserManager* g_user_manager = NULL; |
30 | 27 |
31 UserManager::Observer::~Observer() { | 28 UserManager::Observer::~Observer() { |
32 } | 29 } |
33 | 30 |
34 UserManager::UserSessionStateObserver::~UserSessionStateObserver() { | 31 UserManager::UserSessionStateObserver::~UserSessionStateObserver() { |
35 } | 32 } |
36 | 33 |
37 // static | 34 // static |
38 void UserManager::Initialize() { | 35 void UserManager::Initialize() { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 ScopedTestUserManager::ScopedTestUserManager() { | 77 ScopedTestUserManager::ScopedTestUserManager() { |
81 UserManager::Initialize(); | 78 UserManager::Initialize(); |
82 } | 79 } |
83 | 80 |
84 ScopedTestUserManager::~ScopedTestUserManager() { | 81 ScopedTestUserManager::~ScopedTestUserManager() { |
85 UserManager::Get()->Shutdown(); | 82 UserManager::Get()->Shutdown(); |
86 UserManager::Destroy(); | 83 UserManager::Destroy(); |
87 } | 84 } |
88 | 85 |
89 } // namespace chromeos | 86 } // namespace chromeos |
OLD | NEW |