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

Unified Diff: components/user_manager/user_manager.h

Issue 637533002: Added calls for deferred supervised user status change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Lost method added. Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/ash/system_tray_delegate_chromeos.cc ('k') | components/user_manager/user_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/user_manager/user_manager.h
diff --git a/components/user_manager/user_manager.h b/components/user_manager/user_manager.h
index 4f75cdc3e46e08d1f93f117e173c72f460432e84..656ff62f0dde068930f2688d5879c11ef560b49d 100644
--- a/components/user_manager/user_manager.h
+++ b/components/user_manager/user_manager.h
@@ -51,6 +51,9 @@ class USER_MANAGER_EXPORT UserManager {
// on user_id hash would be accessing up-to-date value.
virtual void ActiveUserHashChanged(const std::string& hash);
+ // Called when supervised status has changed.
+ virtual void UserChangedSupervisedStatus(User* user);
+
protected:
virtual ~UserSessionStateObserver();
};
@@ -290,12 +293,13 @@ class USER_MANAGER_EXPORT UserManager {
virtual void NotifyLocalStateChanged() = 0;
+ // Makes the supervised status change and notifies observers.
+ virtual void ChangeUserSupervisedStatus(User* user, bool is_supervised) = 0;
+
+
// Returns true if supervised users allowed.
virtual bool AreSupervisedUsersAllowed() const = 0;
- // Force update login state.
- virtual void ForceUpdateState() {}
-
protected:
// Sets UserManager instance.
static void SetInstance(UserManager* user_manager);
« no previous file with comments | « chrome/browser/ui/ash/system_tray_delegate_chromeos.cc ('k') | components/user_manager/user_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698