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

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: Fix win build. 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 a28e49cec3f21007a158a1a3d9853645f0f7842b..9702437484c0e25b445c3b93d3a32dbf8a2d970e 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 profile
+ // is 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