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

Unified Diff: chrome/browser/lifetime/application_lifetime.h

Issue 1931503002: Add BackgroundModeOptimizer that can restart the browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@PushKeepAlive
Patch Set: cleanup, enable by default (that's just to verify the tests) Created 4 years, 5 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/lifetime/application_lifetime.h
diff --git a/chrome/browser/lifetime/application_lifetime.h b/chrome/browser/lifetime/application_lifetime.h
index 2d426ae8a94698cd3acf939ab2f1a6f93be81b18..bd3ed32ffc94543d34eca983d10ce17fd47e9043 100644
--- a/chrome/browser/lifetime/application_lifetime.h
+++ b/chrome/browser/lifetime/application_lifetime.h
@@ -85,6 +85,12 @@ void OnAppExiting();
// Called once the application is exiting to do any platform specific
// processing required.
void HandleAppExitingForPlatform();
+
+// Calling |AttemptRestart| unconditionally sets some preference to be used
sky 2016/07/06 16:55:33 nit: generally | is used for arguments and members
dgn 2016/07/22 15:18:09 Ack.
+// during the shutdown or start sequences. They normally get reset when they are
+// individually read and used. In case a restart is cancelled, this function
+// should be called to perform that reset.
+void ResetRestartPrefs();
sky 2016/07/06 16:55:33 Can this move to browser_shutdown::SetTryingToQuit
dgn 2016/07/22 15:18:09 Good point, done.
#endif // !defined(OS_ANDROID)
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698