| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 } | 222 } |
| 223 | 223 |
| 224 bool FakeUserManager::IsLoggedInAsPublicAccount() const { | 224 bool FakeUserManager::IsLoggedInAsPublicAccount() const { |
| 225 return false; | 225 return false; |
| 226 } | 226 } |
| 227 | 227 |
| 228 bool FakeUserManager::IsLoggedInAsGuest() const { | 228 bool FakeUserManager::IsLoggedInAsGuest() const { |
| 229 return false; | 229 return false; |
| 230 } | 230 } |
| 231 | 231 |
| 232 bool FakeUserManager::IsLoggedInAsLocallyManagedUser() const { | 232 bool FakeUserManager::IsLoggedInAsSupervisedUser() const { |
| 233 return false; | 233 return false; |
| 234 } | 234 } |
| 235 | 235 |
| 236 bool FakeUserManager::IsLoggedInAsKioskApp() const { | 236 bool FakeUserManager::IsLoggedInAsKioskApp() const { |
| 237 const User* active_user = GetActiveUser(); | 237 const User* active_user = GetActiveUser(); |
| 238 return active_user | 238 return active_user |
| 239 ? active_user->GetType() == user_manager::USER_TYPE_KIOSK_APP | 239 ? active_user->GetType() == user_manager::USER_TYPE_KIOSK_APP |
| 240 : false; | 240 : false; |
| 241 } | 241 } |
| 242 | 242 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 254 } | 254 } |
| 255 | 255 |
| 256 UserFlow* FakeUserManager::GetCurrentUserFlow() const { | 256 UserFlow* FakeUserManager::GetCurrentUserFlow() const { |
| 257 return NULL; | 257 return NULL; |
| 258 } | 258 } |
| 259 | 259 |
| 260 UserFlow* FakeUserManager::GetUserFlow(const std::string& email) const { | 260 UserFlow* FakeUserManager::GetUserFlow(const std::string& email) const { |
| 261 return NULL; | 261 return NULL; |
| 262 } | 262 } |
| 263 | 263 |
| 264 bool FakeUserManager::AreLocallyManagedUsersAllowed() const { | 264 bool FakeUserManager::AreSupervisedUsersAllowed() const { |
| 265 return true; | 265 return true; |
| 266 } | 266 } |
| 267 | 267 |
| 268 } // namespace chromeos | 268 } // namespace chromeos |
| OLD | NEW |