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

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

Issue 417623002: user_manager component: Add UserManagerBase class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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_image/user_image.h" 9 #include "components/user_manager/user_image/user_image.h"
10 #include "components/user_manager/user_type.h" 10 #include "components/user_manager/user_type.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 } 178 }
179 179
180 const user_manager::UserList& FakeUserManager::GetLRULoggedInUsers() { 180 const user_manager::UserList& FakeUserManager::GetLRULoggedInUsers() {
181 return user_list_; 181 return user_list_;
182 } 182 }
183 183
184 user_manager::UserList FakeUserManager::GetUnlockUsers() const { 184 user_manager::UserList FakeUserManager::GetUnlockUsers() const {
185 return user_list_; 185 return user_list_;
186 } 186 }
187 187
188 const std::string& FakeUserManager::GetOwnerEmail() { 188 const std::string& FakeUserManager::GetOwnerEmail() const {
189 return owner_email_; 189 return owner_email_;
190 } 190 }
191 191
192 bool FakeUserManager::IsKnownUser(const std::string& email) const { 192 bool FakeUserManager::IsKnownUser(const std::string& email) const {
193 return true; 193 return true;
194 } 194 }
195 195
196 const user_manager::User* FakeUserManager::FindUser( 196 const user_manager::User* FakeUserManager::FindUser(
197 const std::string& email) const { 197 const std::string& email) const {
198 const user_manager::UserList& users = GetUsers(); 198 const user_manager::UserList& users = GetUsers();
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 298
299 UserFlow* FakeUserManager::GetUserFlow(const std::string& email) const { 299 UserFlow* FakeUserManager::GetUserFlow(const std::string& email) const {
300 return NULL; 300 return NULL;
301 } 301 }
302 302
303 bool FakeUserManager::AreSupervisedUsersAllowed() const { 303 bool FakeUserManager::AreSupervisedUsersAllowed() const {
304 return true; 304 return true;
305 } 305 }
306 306
307 } // namespace chromeos 307 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698