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

Side by Side Diff: components/user_manager/fake_user_manager.cc

Issue 2438063002: user_manager: Remove deps on session_manager (Closed)
Patch Set: fix nits in PS1 Created 4 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
« no previous file with comments | « components/user_manager/fake_user_manager.h ('k') | components/user_manager/user_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "components/user_manager/fake_user_manager.h" 5 #include "components/user_manager/fake_user_manager.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/sys_info.h" 9 #include "base/sys_info.h"
10 #include "base/task_runner.h" 10 #include "base/task_runner.h"
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 const user_manager::User* active_user = GetActiveUser(); 241 const user_manager::User* active_user = GetActiveUser();
242 return active_user 242 return active_user
243 ? active_user->GetType() == user_manager::USER_TYPE_KIOSK_APP 243 ? active_user->GetType() == user_manager::USER_TYPE_KIOSK_APP
244 : false; 244 : false;
245 } 245 }
246 246
247 bool FakeUserManager::IsLoggedInAsStub() const { 247 bool FakeUserManager::IsLoggedInAsStub() const {
248 return false; 248 return false;
249 } 249 }
250 250
251 bool FakeUserManager::IsSessionStarted() const {
252 return false;
253 }
254
255 bool FakeUserManager::IsUserNonCryptohomeDataEphemeral( 251 bool FakeUserManager::IsUserNonCryptohomeDataEphemeral(
256 const AccountId& account_id) const { 252 const AccountId& account_id) const {
257 return false; 253 return false;
258 } 254 }
259 255
260 bool FakeUserManager::AreSupervisedUsersAllowed() const { 256 bool FakeUserManager::AreSupervisedUsersAllowed() const {
261 return true; 257 return true;
262 } 258 }
263 259
264 bool FakeUserManager::AreEphemeralUsersEnabled() const { 260 bool FakeUserManager::AreEphemeralUsersEnabled() const {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 NOTIMPLEMENTED(); 349 NOTIMPLEMENTED();
354 return; 350 return;
355 } 351 }
356 352
357 bool FakeUserManager::IsValidDefaultUserImageId(int image_index) const { 353 bool FakeUserManager::IsValidDefaultUserImageId(int image_index) const {
358 NOTIMPLEMENTED(); 354 NOTIMPLEMENTED();
359 return false; 355 return false;
360 } 356 }
361 357
362 } // namespace user_manager 358 } // namespace user_manager
OLDNEW
« no previous file with comments | « components/user_manager/fake_user_manager.h ('k') | components/user_manager/user_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698