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 "chrome/browser/chromeos/login/users/chrome_user_manager_impl.h" | 5 #include "chrome/browser/chromeos/login/users/chrome_user_manager_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <cstddef> | 9 #include <cstddef> |
10 #include <set> | 10 #include <set> |
(...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1329 const AccountId& account_id, | 1329 const AccountId& account_id, |
1330 const policy::DeviceLocalAccount::Type type) const { | 1330 const policy::DeviceLocalAccount::Type type) const { |
1331 std::unique_ptr<user_manager::User> user; | 1331 std::unique_ptr<user_manager::User> user; |
1332 switch (type) { | 1332 switch (type) { |
1333 case policy::DeviceLocalAccount::TYPE_PUBLIC_SESSION: | 1333 case policy::DeviceLocalAccount::TYPE_PUBLIC_SESSION: |
1334 user.reset(user_manager::User::CreatePublicAccountUser(account_id)); | 1334 user.reset(user_manager::User::CreatePublicAccountUser(account_id)); |
1335 break; | 1335 break; |
1336 case policy::DeviceLocalAccount::TYPE_KIOSK_APP: | 1336 case policy::DeviceLocalAccount::TYPE_KIOSK_APP: |
1337 user.reset(user_manager::User::CreateKioskAppUser(account_id)); | 1337 user.reset(user_manager::User::CreateKioskAppUser(account_id)); |
1338 break; | 1338 break; |
| 1339 case policy::DeviceLocalAccount::TYPE_ARC_KIOSK_APP: |
| 1340 user.reset(user_manager::User::CreateArcKioskAppUser(account_id)); |
| 1341 break; |
1339 default: | 1342 default: |
1340 NOTREACHED(); | 1343 NOTREACHED(); |
1341 break; | 1344 break; |
1342 } | 1345 } |
1343 | 1346 |
1344 return user; | 1347 return user; |
1345 } | 1348 } |
1346 | 1349 |
1347 } // namespace chromeos | 1350 } // namespace chromeos |
OLD | NEW |