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

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: Rebase 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
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 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « ash/system/chromeos/screen_layout_observer.cc ('k') | chrome/browser/chromeos/login/users/chrome_user_manager_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698