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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // OAuth tokens. 99 // OAuth tokens.
100 // TODO(nkostylev): Cleanup after WebUI login migration is complete. 100 // TODO(nkostylev): Cleanup after WebUI login migration is complete.
101 virtual scoped_refptr<Authenticator> CreateAuthenticator( 101 virtual scoped_refptr<Authenticator> CreateAuthenticator(
102 LoginStatusConsumer* consumer) = 0; 102 LoginStatusConsumer* consumer) = 0;
103 103
104 // Restores authentication session after crash. 104 // Restores authentication session after crash.
105 virtual void RestoreAuthenticationSession(Profile* profile) = 0; 105 virtual void RestoreAuthenticationSession(Profile* profile) = 0;
106 106
107 // Initialize RLZ. 107 // Initialize RLZ.
108 virtual void InitRlzDelayed(Profile* user_profile) = 0; 108 virtual void InitRlzDelayed(Profile* user_profile) = 0;
109
110 // Initiates process restart if needed.
111 // Might not return if restart is possible right now.
112 // Returns true if restart was scheduled.
113 // Returns false if no restart is needed,
114 virtual bool RestartToApplyPerSessionFlagsIfNeed(Profile* profile) = 0;
109 }; 115 };
110 116
111 } // namespace chromeos 117 } // namespace chromeos
112 118
113 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ 119 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698