| 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 } | 262 } |
| 263 | 263 |
| 264 bool FakeUserManager::IsUserLoggedIn() const { | 264 bool FakeUserManager::IsUserLoggedIn() const { |
| 265 return logged_in_users_.size() > 0; | 265 return logged_in_users_.size() > 0; |
| 266 } | 266 } |
| 267 | 267 |
| 268 bool FakeUserManager::IsLoggedInAsRegularUser() const { | 268 bool FakeUserManager::IsLoggedInAsRegularUser() const { |
| 269 return true; | 269 return true; |
| 270 } | 270 } |
| 271 | 271 |
| 272 bool FakeUserManager::IsLoggedInAsDemoUser() const { | |
| 273 return false; | |
| 274 } | |
| 275 | |
| 276 bool FakeUserManager::IsLoggedInAsPublicAccount() const { | 272 bool FakeUserManager::IsLoggedInAsPublicAccount() const { |
| 277 return false; | 273 return false; |
| 278 } | 274 } |
| 279 | 275 |
| 280 bool FakeUserManager::IsLoggedInAsGuest() const { | 276 bool FakeUserManager::IsLoggedInAsGuest() const { |
| 281 return false; | 277 return false; |
| 282 } | 278 } |
| 283 | 279 |
| 284 bool FakeUserManager::IsLoggedInAsSupervisedUser() const { | 280 bool FakeUserManager::IsLoggedInAsSupervisedUser() const { |
| 285 return false; | 281 return false; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 bool FakeUserManager::IsKioskApp(const std::string& user_id) const { | 337 bool FakeUserManager::IsKioskApp(const std::string& user_id) const { |
| 342 return false; | 338 return false; |
| 343 } | 339 } |
| 344 | 340 |
| 345 bool FakeUserManager::IsPublicAccountMarkedForRemoval( | 341 bool FakeUserManager::IsPublicAccountMarkedForRemoval( |
| 346 const std::string& user_id) const { | 342 const std::string& user_id) const { |
| 347 return false; | 343 return false; |
| 348 } | 344 } |
| 349 | 345 |
| 350 } // namespace chromeos | 346 } // namespace chromeos |
| OLD | NEW |