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

Unified Diff: components/user_manager/user_manager.h

Issue 2711113003: Track whether a given user session has completed initialization, and use (Closed)
Patch Set: Only expose known_user::RemovePrefsForTesting() for tests Created 3 years, 9 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 | « components/user_manager/user.h ('k') | components/user_manager/user_manager_base.h » ('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 1029959282f0755e1e043a784c87ac2a2172d9d0..b3eb6682bc6a1390eac7f0e282baf1dcbac7a4a7 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 profile 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 profile that has
+ // completed initialization.
+ virtual void OnProfileInitialized(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.
« no previous file with comments | « components/user_manager/user.h ('k') | components/user_manager/user_manager_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698