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

Side by Side Diff: chrome/browser/chromeos/login/users/chrome_user_manager_util.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_util.h" 5 #include "chrome/browser/chromeos/login/users/chrome_user_manager_util.h"
6 6
7 #include "chromeos/login/user_names.h" 7 #include "chromeos/login/user_names.h"
8 #include "components/user_manager/user.h" 8 #include "components/user_manager/user.h"
9 #include "components/user_manager/user_type.h" 9 #include "components/user_manager/user_type.h"
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 else if (is_current_user_owner) 42 else if (is_current_user_owner)
43 login_user_type = chromeos::LoginState::LOGGED_IN_USER_OWNER; 43 login_user_type = chromeos::LoginState::LOGGED_IN_USER_OWNER;
44 else if (active_user->GetType() == user_manager::USER_TYPE_GUEST) 44 else if (active_user->GetType() == user_manager::USER_TYPE_GUEST)
45 login_user_type = chromeos::LoginState::LOGGED_IN_USER_GUEST; 45 login_user_type = chromeos::LoginState::LOGGED_IN_USER_GUEST;
46 else if (active_user->GetType() == user_manager::USER_TYPE_PUBLIC_ACCOUNT) 46 else if (active_user->GetType() == user_manager::USER_TYPE_PUBLIC_ACCOUNT)
47 login_user_type = chromeos::LoginState::LOGGED_IN_USER_PUBLIC_ACCOUNT; 47 login_user_type = chromeos::LoginState::LOGGED_IN_USER_PUBLIC_ACCOUNT;
48 else if (active_user->GetType() == user_manager::USER_TYPE_SUPERVISED) 48 else if (active_user->GetType() == user_manager::USER_TYPE_SUPERVISED)
49 login_user_type = chromeos::LoginState::LOGGED_IN_USER_SUPERVISED; 49 login_user_type = chromeos::LoginState::LOGGED_IN_USER_SUPERVISED;
50 else if (active_user->GetType() == user_manager::USER_TYPE_KIOSK_APP) 50 else if (active_user->GetType() == user_manager::USER_TYPE_KIOSK_APP)
51 login_user_type = chromeos::LoginState::LOGGED_IN_USER_KIOSK_APP; 51 login_user_type = chromeos::LoginState::LOGGED_IN_USER_KIOSK_APP;
52 else if (active_user->GetType() == user_manager::USER_TYPE_ARC_KIOSK_APP)
53 login_user_type = chromeos::LoginState::LOGGED_IN_USER_ARC_KIOSK_APP;
52 else 54 else
53 login_user_type = chromeos::LoginState::LOGGED_IN_USER_REGULAR; 55 login_user_type = chromeos::LoginState::LOGGED_IN_USER_REGULAR;
54 56
55 if (primary_user) { 57 if (primary_user) {
56 chromeos::LoginState::Get()->SetLoggedInStateAndPrimaryUser( 58 chromeos::LoginState::Get()->SetLoggedInStateAndPrimaryUser(
57 logged_in_state, login_user_type, primary_user->username_hash()); 59 logged_in_state, login_user_type, primary_user->username_hash());
58 } else { 60 } else {
59 chromeos::LoginState::Get()->SetLoggedInState(logged_in_state, 61 chromeos::LoginState::Get()->SetLoggedInState(logged_in_state,
60 login_user_type); 62 login_user_type);
61 } 63 }
62 } 64 }
63 65
64 } // namespace chrome_user_manager_util 66 } // namespace chrome_user_manager_util
65 } // namespace chromeos 67 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698