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

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

Issue 600733004: Rename GetUsersAdmittedForMultiProfile to GetUsersAllowedForMultiProfile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 2 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
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 void FakeUserManager::LoginUser(const std::string& email) { 95 void FakeUserManager::LoginUser(const std::string& email) {
96 UserLoggedIn( 96 UserLoggedIn(
97 email, ProfileHelper::GetUserIdHashByUserIdForTesting(email), false); 97 email, ProfileHelper::GetUserIdHashByUserIdForTesting(email), false);
98 } 98 }
99 99
100 const user_manager::UserList& FakeUserManager::GetUsers() const { 100 const user_manager::UserList& FakeUserManager::GetUsers() const {
101 return user_list_; 101 return user_list_;
102 } 102 }
103 103
104 user_manager::UserList FakeUserManager::GetUsersAdmittedForMultiProfile() 104 user_manager::UserList FakeUserManager::GetUsersAllowedForMultiProfile() const {
105 const {
106 user_manager::UserList result; 105 user_manager::UserList result;
107 for (user_manager::UserList::const_iterator it = user_list_.begin(); 106 for (user_manager::UserList::const_iterator it = user_list_.begin();
108 it != user_list_.end(); 107 it != user_list_.end();
109 ++it) { 108 ++it) {
110 if ((*it)->GetType() == user_manager::USER_TYPE_REGULAR && 109 if ((*it)->GetType() == user_manager::USER_TYPE_REGULAR &&
111 !(*it)->is_logged_in()) 110 !(*it)->is_logged_in())
112 result.push_back(*it); 111 result.push_back(*it);
113 } 112 }
114 return result; 113 return result;
115 } 114 }
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 bool FakeUserManager::IsKioskApp(const std::string& user_id) const { 341 bool FakeUserManager::IsKioskApp(const std::string& user_id) const {
343 return false; 342 return false;
344 } 343 }
345 344
346 bool FakeUserManager::IsPublicAccountMarkedForRemoval( 345 bool FakeUserManager::IsPublicAccountMarkedForRemoval(
347 const std::string& user_id) const { 346 const std::string& user_id) const {
348 return false; 347 return false;
349 } 348 }
350 349
351 } // namespace chromeos 350 } // 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