| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |