OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/fake_chrome_user_manager.h" | 5 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h" |
6 | 6 |
7 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" | 7 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" |
8 #include "chrome/browser/chromeos/login/users/fake_supervised_user_manager.h" | 8 #include "chrome/browser/chromeos/login/users/fake_supervised_user_manager.h" |
9 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" | 9 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" |
10 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 10 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 } | 137 } |
138 | 138 |
139 void FakeChromeUserManager::SessionStarted() { | 139 void FakeChromeUserManager::SessionStarted() { |
140 } | 140 } |
141 | 141 |
142 void FakeChromeUserManager::RemoveUser( | 142 void FakeChromeUserManager::RemoveUser( |
143 const AccountId& account_id, | 143 const AccountId& account_id, |
144 user_manager::RemoveUserDelegate* delegate) {} | 144 user_manager::RemoveUserDelegate* delegate) {} |
145 | 145 |
146 void FakeChromeUserManager::RemoveUserFromList(const AccountId& account_id) { | 146 void FakeChromeUserManager::RemoveUserFromList(const AccountId& account_id) { |
147 WallpaperManager::Get()->RemoveUserWallpaperInfo(account_id.GetUserEmail()); | 147 WallpaperManager::Get()->RemoveUserWallpaperInfo(account_id); |
148 FakeUserManager::RemoveUserFromList(account_id); | 148 FakeUserManager::RemoveUserFromList(account_id); |
149 } | 149 } |
150 | 150 |
151 user_manager::UserList | 151 user_manager::UserList |
152 FakeChromeUserManager::GetUsersAllowedForSupervisedUsersCreation() const { | 152 FakeChromeUserManager::GetUsersAllowedForSupervisedUsersCreation() const { |
153 CrosSettings* cros_settings = CrosSettings::Get(); | 153 CrosSettings* cros_settings = CrosSettings::Get(); |
154 bool allow_new_user = true; | 154 bool allow_new_user = true; |
155 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 155 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
156 bool supervised_users_allowed = AreSupervisedUsersAllowed(); | 156 bool supervised_users_allowed = AreSupervisedUsersAllowed(); |
157 | 157 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 const base::DictionaryValue** out_value) { | 193 const base::DictionaryValue** out_value) { |
194 return false; | 194 return false; |
195 } | 195 } |
196 | 196 |
197 void FakeChromeUserManager::UpdateKnownUserPrefs( | 197 void FakeChromeUserManager::UpdateKnownUserPrefs( |
198 const AccountId& account_id, | 198 const AccountId& account_id, |
199 const base::DictionaryValue& values, | 199 const base::DictionaryValue& values, |
200 bool clear) {} | 200 bool clear) {} |
201 | 201 |
202 } // namespace chromeos | 202 } // namespace chromeos |
OLD | NEW |