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 |