OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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/users/user_manager.h" | 5 #include "chrome/browser/chromeos/login/users/user_manager.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/prefs/pref_registry_simple.h" | 8 #include "base/prefs/pref_registry_simple.h" |
9 #include "chrome/browser/browser_process_platform_part_chromeos.h" | 9 #include "chrome/browser/browser_process_platform_part_chromeos.h" |
10 #include "chrome/browser/chromeos/login/users/user_manager_impl.h" | 10 #include "chrome/browser/chromeos/login/users/user_manager_impl.h" |
11 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 11 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
12 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
13 | 13 |
14 namespace chromeos { | 14 namespace chromeos { |
15 | 15 |
16 static UserManager* g_user_manager = NULL; | 16 static UserManager* g_user_manager = NULL; |
17 | 17 |
18 UserManager::Observer::~Observer() { | 18 UserManager::Observer::~Observer() { |
19 } | 19 } |
20 | 20 |
21 void UserManager::Observer::LocalStateChanged(UserManager* user_manager) { | 21 void UserManager::Observer::LocalStateChanged(UserManager* user_manager) { |
22 } | 22 } |
23 | 23 |
24 void UserManager::UserSessionStateObserver::ActiveUserChanged( | 24 void UserManager::UserSessionStateObserver::ActiveUserChanged( |
25 const User* active_user) { | 25 const user_manager::User* active_user) { |
26 } | 26 } |
27 | 27 |
28 void UserManager::UserSessionStateObserver::UserAddedToSession( | 28 void UserManager::UserSessionStateObserver::UserAddedToSession( |
29 const User* active_user) { | 29 const user_manager::User* active_user) { |
30 } | 30 } |
31 | 31 |
32 void UserManager::UserSessionStateObserver::ActiveUserHashChanged( | 32 void UserManager::UserSessionStateObserver::ActiveUserHashChanged( |
33 const std::string& hash) { | 33 const std::string& hash) { |
34 } | 34 } |
35 | 35 |
36 UserManager::UserSessionStateObserver::~UserSessionStateObserver() { | 36 UserManager::UserSessionStateObserver::~UserSessionStateObserver() { |
37 } | 37 } |
38 | 38 |
39 UserManager::UserAccountData::UserAccountData( | 39 UserManager::UserAccountData::UserAccountData( |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 // ProfileHelper has to be initialized after UserManager instance is created. | 99 // ProfileHelper has to be initialized after UserManager instance is created. |
100 ProfileHelper::Get()->Initialize(); | 100 ProfileHelper::Get()->Initialize(); |
101 } | 101 } |
102 | 102 |
103 ScopedTestUserManager::~ScopedTestUserManager() { | 103 ScopedTestUserManager::~ScopedTestUserManager() { |
104 UserManager::Get()->Shutdown(); | 104 UserManager::Get()->Shutdown(); |
105 UserManager::Destroy(); | 105 UserManager::Destroy(); |
106 } | 106 } |
107 | 107 |
108 } // namespace chromeos | 108 } // namespace chromeos |
OLD | NEW |