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

Unified Diff: components/user_manager/user_manager_base.h

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.h
diff --git a/components/user_manager/user_manager_base.h b/components/user_manager/user_manager_base.h
index 00360edb2f2203a75aae70614c3a6f84f6c367c5..55e2fb34c327f19e5f43ece2e22c7f0d5fa878c2 100644
--- a/components/user_manager/user_manager_base.h
+++ b/components/user_manager/user_manager_base.h
@@ -153,12 +153,10 @@ class USER_MANAGER_EXPORT UserManagerBase : public UserManager {
// Returns true if device is enterprise managed.
virtual bool IsEnterpriseManaged() const = 0;
- // Helper function that copies users from |users_list| to |users_vector| and
- // |users_set|. Duplicates and users already present in |existing_users| are
- // skipped.
- // Loads public accounts from the Local state and fills in
- // |public_sessions_set|.
- virtual void LoadPublicAccounts(std::set<AccountId>* public_sessions_set) = 0;
+ // Loads device local accounts from the Local state and fills in
+ // |device_local_accounts_set|.
+ virtual void LoadDeviceLocalAccounts(
+ std::set<AccountId>* device_local_accounts_set) = 0;
// Notifies that user has logged in.
virtual void NotifyOnLogin();
@@ -206,9 +204,6 @@ class USER_MANAGER_EXPORT UserManagerBase : public UserManager {
// Returns true if |account_id| represents demo app.
virtual bool IsDemoApp(const AccountId& account_id) const = 0;
- // Returns true if |account_id| represents kiosk app.
- virtual bool IsKioskApp(const AccountId& account_id) const = 0;
-
// Returns true if |account_id| represents public account that has been marked
// for deletion.
virtual bool IsPublicAccountMarkedForRemoval(
@@ -223,7 +218,7 @@ class USER_MANAGER_EXPORT UserManagerBase : public UserManager {
virtual void GuestUserLoggedIn();
// Indicates that a kiosk app robot just logged in.
- virtual void KioskAppLoggedIn(const AccountId& kiosk_app_account_id) = 0;
+ virtual void KioskAppLoggedIn(User* user) = 0;
// Indicates that a user just logged into a public session.
virtual void PublicAccountUserLoggedIn(User* user) = 0;
@@ -268,8 +263,8 @@ class USER_MANAGER_EXPORT UserManagerBase : public UserManager {
User* primary_user_ = nullptr;
// List of all known users. User instances are owned by |this|. Regular users
- // are removed by |RemoveUserFromList|, public accounts by
- // |UpdateAndCleanUpPublicAccounts|.
+ // are removed by |RemoveUserFromList|, device local accounts by
+ // |UpdateAndCleanUpDeviceLocalAccounts|.
UserList users_;
// List of all users that are logged in current session. These point to User

Powered by Google App Engine
This is Rietveld 408576698