| 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 "base/task_runner.h" | 7 #include "base/task_runner.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/profiles/profile_helper.h" | 9 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 10 #include "chrome/grit/theme_resources.h" | 10 #include "chrome/grit/theme_resources.h" |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 } | 267 } |
| 268 | 268 |
| 269 bool FakeUserManager::IsUserLoggedIn() const { | 269 bool FakeUserManager::IsUserLoggedIn() const { |
| 270 return logged_in_users_.size() > 0; | 270 return logged_in_users_.size() > 0; |
| 271 } | 271 } |
| 272 | 272 |
| 273 bool FakeUserManager::IsLoggedInAsUserWithGaiaAccount() const { | 273 bool FakeUserManager::IsLoggedInAsUserWithGaiaAccount() const { |
| 274 return true; | 274 return true; |
| 275 } | 275 } |
| 276 | 276 |
| 277 bool FakeUserManager::IsLoggedInAsDemoUser() const { | |
| 278 return false; | |
| 279 } | |
| 280 | |
| 281 bool FakeUserManager::IsLoggedInAsPublicAccount() const { | 277 bool FakeUserManager::IsLoggedInAsPublicAccount() const { |
| 282 return false; | 278 return false; |
| 283 } | 279 } |
| 284 | 280 |
| 285 bool FakeUserManager::IsLoggedInAsGuest() const { | 281 bool FakeUserManager::IsLoggedInAsGuest() const { |
| 286 return false; | 282 return false; |
| 287 } | 283 } |
| 288 | 284 |
| 289 bool FakeUserManager::IsLoggedInAsSupervisedUser() const { | 285 bool FakeUserManager::IsLoggedInAsSupervisedUser() const { |
| 290 return false; | 286 return false; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 bool FakeUserManager::IsKioskApp(const std::string& user_id) const { | 342 bool FakeUserManager::IsKioskApp(const std::string& user_id) const { |
| 347 return false; | 343 return false; |
| 348 } | 344 } |
| 349 | 345 |
| 350 bool FakeUserManager::IsPublicAccountMarkedForRemoval( | 346 bool FakeUserManager::IsPublicAccountMarkedForRemoval( |
| 351 const std::string& user_id) const { | 347 const std::string& user_id) const { |
| 352 return false; | 348 return false; |
| 353 } | 349 } |
| 354 | 350 |
| 355 } // namespace chromeos | 351 } // namespace chromeos |
| OLD | NEW |