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

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

Issue 393343002: Rename "managed (mode|user)" to "supervised user" (part 7) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more alphabetize (and rebase again) Created 6 years, 5 months 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 | Annotate | Revision Log
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 "chrome/browser/chromeos/login/users/fake_supervised_user_manager.h" 7 #include "chrome/browser/chromeos/login/users/fake_supervised_user_manager.h"
8 #include "chrome/browser/chromeos/profiles/profile_helper.h" 8 #include "chrome/browser/chromeos/profiles/profile_helper.h"
9 #include "components/user_manager/user_type.h" 9 #include "components/user_manager/user_type.h"
10 10
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 } 240 }
241 241
242 bool FakeUserManager::IsLoggedInAsPublicAccount() const { 242 bool FakeUserManager::IsLoggedInAsPublicAccount() const {
243 return false; 243 return false;
244 } 244 }
245 245
246 bool FakeUserManager::IsLoggedInAsGuest() const { 246 bool FakeUserManager::IsLoggedInAsGuest() const {
247 return false; 247 return false;
248 } 248 }
249 249
250 bool FakeUserManager::IsLoggedInAsLocallyManagedUser() const { 250 bool FakeUserManager::IsLoggedInAsSupervisedUser() const {
251 return false; 251 return false;
252 } 252 }
253 253
254 bool FakeUserManager::IsLoggedInAsKioskApp() const { 254 bool FakeUserManager::IsLoggedInAsKioskApp() const {
255 const User* active_user = GetActiveUser(); 255 const User* active_user = GetActiveUser();
256 return active_user 256 return active_user
257 ? active_user->GetType() == user_manager::USER_TYPE_KIOSK_APP 257 ? active_user->GetType() == user_manager::USER_TYPE_KIOSK_APP
258 : false; 258 : false;
259 } 259 }
260 260
(...skipping 11 matching lines...) Expand all
272 } 272 }
273 273
274 UserFlow* FakeUserManager::GetCurrentUserFlow() const { 274 UserFlow* FakeUserManager::GetCurrentUserFlow() const {
275 return NULL; 275 return NULL;
276 } 276 }
277 277
278 UserFlow* FakeUserManager::GetUserFlow(const std::string& email) const { 278 UserFlow* FakeUserManager::GetUserFlow(const std::string& email) const {
279 return NULL; 279 return NULL;
280 } 280 }
281 281
282 bool FakeUserManager::AreLocallyManagedUsersAllowed() const { 282 bool FakeUserManager::AreSupervisedUsersAllowed() const {
283 return true; 283 return true;
284 } 284 }
285 285
286 } // namespace chromeos 286 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/users/fake_user_manager.h ('k') | chrome/browser/chromeos/login/users/mock_user_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698