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