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

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

Issue 2421323002: Created new account type for ARC++ kiosk. (Closed)
Patch Set: Created 4 years, 2 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
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/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 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1333 const AccountId& account_id, 1333 const AccountId& account_id,
1334 const policy::DeviceLocalAccount::Type type) const { 1334 const policy::DeviceLocalAccount::Type type) const {
1335 std::unique_ptr<user_manager::User> user; 1335 std::unique_ptr<user_manager::User> user;
1336 switch (type) { 1336 switch (type) {
1337 case policy::DeviceLocalAccount::TYPE_PUBLIC_SESSION: 1337 case policy::DeviceLocalAccount::TYPE_PUBLIC_SESSION:
1338 user.reset(user_manager::User::CreatePublicAccountUser(account_id)); 1338 user.reset(user_manager::User::CreatePublicAccountUser(account_id));
1339 break; 1339 break;
1340 case policy::DeviceLocalAccount::TYPE_KIOSK_APP: 1340 case policy::DeviceLocalAccount::TYPE_KIOSK_APP:
1341 user.reset(user_manager::User::CreateKioskAppUser(account_id)); 1341 user.reset(user_manager::User::CreateKioskAppUser(account_id));
1342 break; 1342 break;
1343 case policy::DeviceLocalAccount::TYPE_ARC_KIOSK_APP:
1344 user.reset(user_manager::User::CreateArcKioskAppUser(account_id));
1345 break;
1343 default: 1346 default:
1344 NOTREACHED(); 1347 NOTREACHED();
1345 break; 1348 break;
1346 } 1349 }
1347 1350
1348 return user; 1351 return user;
1349 } 1352 }
1350 1353
1351 } // namespace chromeos 1354 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698