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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 return false; | 237 return false; |
238 } | 238 } |
239 | 239 |
240 bool FakeUserManager::IsLoggedInAsKioskApp() const { | 240 bool FakeUserManager::IsLoggedInAsKioskApp() const { |
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::IsLoggedInAsArcKioskApp() const { |
| 248 const user_manager::User* active_user = GetActiveUser(); |
| 249 return active_user |
| 250 ? active_user->GetType() == user_manager::USER_TYPE_ARC_KIOSK_APP |
| 251 : false; |
| 252 } |
| 253 |
247 bool FakeUserManager::IsLoggedInAsStub() const { | 254 bool FakeUserManager::IsLoggedInAsStub() const { |
248 return false; | 255 return false; |
249 } | 256 } |
250 | 257 |
251 bool FakeUserManager::IsSessionStarted() const { | 258 bool FakeUserManager::IsSessionStarted() const { |
252 return false; | 259 return false; |
253 } | 260 } |
254 | 261 |
255 bool FakeUserManager::IsUserNonCryptohomeDataEphemeral( | 262 bool FakeUserManager::IsUserNonCryptohomeDataEphemeral( |
256 const AccountId& account_id) const { | 263 const AccountId& account_id) const { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 NOTIMPLEMENTED(); | 360 NOTIMPLEMENTED(); |
354 return; | 361 return; |
355 } | 362 } |
356 | 363 |
357 bool FakeUserManager::IsValidDefaultUserImageId(int image_index) const { | 364 bool FakeUserManager::IsValidDefaultUserImageId(int image_index) const { |
358 NOTIMPLEMENTED(); | 365 NOTIMPLEMENTED(); |
359 return false; | 366 return false; |
360 } | 367 } |
361 | 368 |
362 } // namespace user_manager | 369 } // namespace user_manager |
OLD | NEW |