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/fake_user_manager.h" | 5 #include "chrome/browser/chromeos/login/users/fake_user_manager.h" |
6 | 6 |
7 #include "chrome/browser/chromeos/login/users/fake_supervised_user_manager.h" | 7 #include "chrome/browser/chromeos/login/users/fake_supervised_user_manager.h" |
8 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 8 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
9 #include "components/user_manager/user_type.h" | 9 #include "components/user_manager/user_type.h" |
10 | 10 |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 } | 240 } |
241 | 241 |
242 bool FakeUserManager::IsLoggedInAsPublicAccount() const { | 242 bool FakeUserManager::IsLoggedInAsPublicAccount() const { |
243 return false; | 243 return false; |
244 } | 244 } |
245 | 245 |
246 bool FakeUserManager::IsLoggedInAsGuest() const { | 246 bool FakeUserManager::IsLoggedInAsGuest() const { |
247 return false; | 247 return false; |
248 } | 248 } |
249 | 249 |
250 bool FakeUserManager::IsLoggedInAsLocallyManagedUser() const { | 250 bool FakeUserManager::IsLoggedInAsSupervisedUser() const { |
251 return false; | 251 return false; |
252 } | 252 } |
253 | 253 |
254 bool FakeUserManager::IsLoggedInAsKioskApp() const { | 254 bool FakeUserManager::IsLoggedInAsKioskApp() const { |
255 const User* active_user = GetActiveUser(); | 255 const User* active_user = GetActiveUser(); |
256 return active_user | 256 return active_user |
257 ? active_user->GetType() == user_manager::USER_TYPE_KIOSK_APP | 257 ? active_user->GetType() == user_manager::USER_TYPE_KIOSK_APP |
258 : false; | 258 : false; |
259 } | 259 } |
260 | 260 |
(...skipping 11 matching lines...) Expand all Loading... |
272 } | 272 } |
273 | 273 |
274 UserFlow* FakeUserManager::GetCurrentUserFlow() const { | 274 UserFlow* FakeUserManager::GetCurrentUserFlow() const { |
275 return NULL; | 275 return NULL; |
276 } | 276 } |
277 | 277 |
278 UserFlow* FakeUserManager::GetUserFlow(const std::string& email) const { | 278 UserFlow* FakeUserManager::GetUserFlow(const std::string& email) const { |
279 return NULL; | 279 return NULL; |
280 } | 280 } |
281 | 281 |
282 bool FakeUserManager::AreLocallyManagedUsersAllowed() const { | 282 bool FakeUserManager::AreSupervisedUsersAllowed() const { |
283 return true; | 283 return true; |
284 } | 284 } |
285 | 285 |
286 } // namespace chromeos | 286 } // namespace chromeos |
OLD | NEW |