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

Unified Diff: chrome/browser/browser_shutdown.h

Issue 1931503002: Add BackgroundModeOptimizer that can restart the browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@PushKeepAlive
Patch Set: Switch the flag to disabled by default Created 4 years, 7 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/browser_shutdown.h
diff --git a/chrome/browser/browser_shutdown.h b/chrome/browser/browser_shutdown.h
index c3450329d821fe916384dc5a6e38d406e7dfe58e..9b93bb34d0122af6b303439679895f62bff6bdeb 100644
--- a/chrome/browser/browser_shutdown.h
+++ b/chrome/browser/browser_shutdown.h
@@ -70,6 +70,10 @@ void SetTryingToQuit(bool quitting);
// General accessor.
bool IsTryingToQuit();
+// Controls whether when restarting the browser should be in the background
+// by adding the kNoStartupWindow switch to the command line.
+void SetShouldRestartInBackground(bool should_restart_in_background);
+
// Starts to collect shutdown traces. On ChromeOS this will start immediately
// on AttemptUserExit() and all other systems will start once all tabs are
// closed.

Powered by Google App Engine
This is Rietveld 408576698