| 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 { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 "locally-managed.localhost"; | 21 "locally-managed.localhost"; |
| 22 | 22 |
| 23 | 23 |
| 24 // static | 24 // static |
| 25 const char UserManager::kRetailModeUserName[] = "demouser@"; | 25 const char UserManager::kRetailModeUserName[] = "demouser@"; |
| 26 static UserManager* g_user_manager = NULL; | 26 static UserManager* g_user_manager = NULL; |
| 27 | 27 |
| 28 UserManager::Observer::~Observer() { | 28 UserManager::Observer::~Observer() { |
| 29 } | 29 } |
| 30 | 30 |
| 31 void UserManager::UserSessionStateObserver::ActiveUserChanged( |
| 32 const User* active_user) { |
| 33 } |
| 34 |
| 35 void UserManager::UserSessionStateObserver::ActiveUserHashChanged( |
| 36 const std::string& hash) { |
| 37 } |
| 38 |
| 39 void UserManager::UserSessionStateObserver:: |
| 40 PendingUserSessionsRestoreFinished() { |
| 41 } |
| 42 |
| 31 UserManager::UserSessionStateObserver::~UserSessionStateObserver() { | 43 UserManager::UserSessionStateObserver::~UserSessionStateObserver() { |
| 32 } | 44 } |
| 33 | 45 |
| 34 // static | 46 // static |
| 35 void UserManager::Initialize() { | 47 void UserManager::Initialize() { |
| 36 CHECK(!g_user_manager); | 48 CHECK(!g_user_manager); |
| 37 g_user_manager = new UserManagerImpl(); | 49 g_user_manager = new UserManagerImpl(); |
| 38 } | 50 } |
| 39 | 51 |
| 40 // static | 52 // static |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 ScopedTestUserManager::ScopedTestUserManager() { | 89 ScopedTestUserManager::ScopedTestUserManager() { |
| 78 UserManager::Initialize(); | 90 UserManager::Initialize(); |
| 79 } | 91 } |
| 80 | 92 |
| 81 ScopedTestUserManager::~ScopedTestUserManager() { | 93 ScopedTestUserManager::~ScopedTestUserManager() { |
| 82 UserManager::Get()->Shutdown(); | 94 UserManager::Get()->Shutdown(); |
| 83 UserManager::Destroy(); | 95 UserManager::Destroy(); |
| 84 } | 96 } |
| 85 | 97 |
| 86 } // namespace chromeos | 98 } // namespace chromeos |
| OLD | NEW |