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

Unified Diff: components/user_manager/user_manager.h

Issue 2711113003: Track whether a given user session has completed initialization, and use (Closed)
Patch Set: Added tests. Created 3 years, 10 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.h
diff --git a/components/user_manager/user_manager.h b/components/user_manager/user_manager.h
index fbf4cc185bf66865199b23ff1c50a531d5b03759..7bc1dcc8169e0e621bc08dde57da9229b43b988a 100644
--- a/components/user_manager/user_manager.h
+++ b/components/user_manager/user_manager.h
@@ -175,6 +175,14 @@ class USER_MANAGER_EXPORT UserManager {
// Invoked by session manager to inform session start.
virtual void OnSessionStarted() = 0;
+ // Invoked once session initialization has been completed. This allows various
+ // subsystems (for example, policy framework) to skip an expensive online
+ // initialization process, and also allows the signin screen to force an
+ // online signin if it knows that profile initialization has not yet
+ // completed. |user| is the User associated with the session that has
+ // completed initialization.
+ virtual void OnSessionInitialized(User* user) = 0;
+
// Removes the user from the device. Note, it will verify that the given user
// isn't the owner, so calling this method for the owner will take no effect.
// Note, |delegate| can be NULL.

Powered by Google App Engine
This is Rietveld 408576698