Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: chrome/browser/chromeos/login/users/fake_user_manager.cc

Issue 718673002: New user type introduced. Combines regular and supervised features. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Logical expression fixed. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698