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

Unified Diff: components/user_manager/user_manager_base.cc

Issue 1865133002: kiosk: Fix kiosk session restart (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: restore "PublicAccounts" local state Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: components/user_manager/user_manager_base.cc
diff --git a/components/user_manager/user_manager_base.cc b/components/user_manager/user_manager_base.cc
index f6f5cf8009c6bfcb3465416ef7355cb8ec77f16f..ac35e459895278ebc636d01e21e74e439dcffaa3 100644
--- a/components/user_manager/user_manager_base.cc
+++ b/components/user_manager/user_manager_base.cc
@@ -152,8 +152,6 @@ void UserManagerBase::UserLoggedIn(const AccountId& account_id,
if (IsGuestAccountId(account_id)) {
GuestUserLoggedIn();
- } else if (IsKioskApp(account_id)) {
- KioskAppLoggedIn(account_id);
} else if (IsDemoApp(account_id)) {
DemoAccountLoggedIn();
} else {
@@ -161,6 +159,8 @@ void UserManagerBase::UserLoggedIn(const AccountId& account_id,
if (user && user->GetType() == USER_TYPE_PUBLIC_ACCOUNT) {
PublicAccountUserLoggedIn(user);
+ } else if (user && user->GetType() == USER_TYPE_KIOSK_APP) {
+ KioskAppLoggedIn(user);
} else if ((user && user->GetType() == USER_TYPE_SUPERVISED) ||
(!user && IsSupervisedAccountId(account_id))) {
SupervisedUserLoggedIn(account_id);
@@ -726,14 +726,14 @@ void UserManagerBase::EnsureUsersLoaded() {
local_state->GetDictionary(kUserType);
// Load public sessions first.
- std::set<AccountId> public_sessions_set;
- LoadPublicAccounts(&public_sessions_set);
+ std::set<AccountId> device_local_accounts_set;
+ LoadDeviceLocalAccounts(&device_local_accounts_set);
// Load regular users and supervised users.
std::vector<AccountId> regular_users;
std::set<AccountId> regular_users_set;
ParseUserList(*prefs_regular_users,
- public_sessions_set,
+ device_local_accounts_set,
&regular_users,
&regular_users_set);
for (std::vector<AccountId>::const_iterator it = regular_users.begin();

Powered by Google App Engine
This is Rietveld 408576698