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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 } | 258 } |
259 | 259 |
260 bool FakeUserManager::CanCurrentUserLock() const { | 260 bool FakeUserManager::CanCurrentUserLock() const { |
261 return false; | 261 return false; |
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::IsLoggedInAsUserWithGaiaAccount() const { |
269 return true; | 269 return true; |
270 } | 270 } |
271 | 271 |
272 bool FakeUserManager::IsLoggedInAsDemoUser() const { | 272 bool FakeUserManager::IsLoggedInAsDemoUser() const { |
273 return false; | 273 return false; |
274 } | 274 } |
275 | 275 |
276 bool FakeUserManager::IsLoggedInAsPublicAccount() const { | 276 bool FakeUserManager::IsLoggedInAsPublicAccount() const { |
277 return false; | 277 return false; |
278 } | 278 } |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 bool FakeUserManager::IsKioskApp(const std::string& user_id) const { | 341 bool FakeUserManager::IsKioskApp(const std::string& user_id) const { |
342 return false; | 342 return false; |
343 } | 343 } |
344 | 344 |
345 bool FakeUserManager::IsPublicAccountMarkedForRemoval( | 345 bool FakeUserManager::IsPublicAccountMarkedForRemoval( |
346 const std::string& user_id) const { | 346 const std::string& user_id) const { |
347 return false; | 347 return false; |
348 } | 348 } |
349 | 349 |
350 } // namespace chromeos | 350 } // namespace chromeos |
OLD | NEW |