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

Unified Diff: chrome/browser/chromeos/login/login_utils.h

Issue 322533002: Restart Chrome on ChromeOS as early as possible to speed up restart. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added check for Oauth data consistency. Created 6 years, 6 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: chrome/browser/chromeos/login/login_utils.h
diff --git a/chrome/browser/chromeos/login/login_utils.h b/chrome/browser/chromeos/login/login_utils.h
index 4867cc29c60768670e3b01af839527aeb28651fb..9435f1f353c4b4859faa502878366d8b7a0d5d96 100644
--- a/chrome/browser/chromeos/login/login_utils.h
+++ b/chrome/browser/chromeos/login/login_utils.h
@@ -89,6 +89,15 @@ class LoginUtils {
// TODO(nkostylev): Cleanup after WebUI login migration is complete.
virtual scoped_refptr<Authenticator> CreateAuthenticator(
LoginStatusConsumer* consumer) = 0;
+
+ // Initiates process restart if needed.
+ // |early_restart| is true if this restart attempt happens before user keys
Nikita (slow) 2014/06/18 12:23:30 nit: Before user profile is fully initialized.
Alexander Alekseev 2014/06/18 15:06:55 Done.
+ // are fully initialized.
+ // Might not return if restart is possible right now.
+ // Returns true if restart was scheduled.
+ // Returns false if no restart is needed,
+ virtual bool RestartToApplyPerSessionFlagsIfNeed(Profile* profile,
+ bool early_restart) = 0;
};
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698