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

Unified Diff: chrome/browser/background/background_mode_manager.cc

Issue 1725883002: Add KeepAliveStateObserver, add the Restart option (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@KeepAlive
Patch Set: Created 4 years, 10 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/background/background_mode_manager.cc
diff --git a/chrome/browser/background/background_mode_manager.cc b/chrome/browser/background/background_mode_manager.cc
index 92947be278719dfd240436e9c46d2e3f9b4cb642..61a8d29eb809f6410bc983cbd871dabe9d3c26b4 100644
--- a/chrome/browser/background/background_mode_manager.cc
+++ b/chrome/browser/background/background_mode_manager.cc
@@ -86,7 +86,8 @@ enum MenuItem {
MENU_ITEM_NUM_STATES
};
-const KeepAliveOptions kKeepAliveOptions = {"Background"};
+const KeepAliveOptions kKeepAliveOptions = {"Background",
+ KeepAliveOptionRestart::ENABLED};
void RecordMenuItemClick(MenuItem item) {
UMA_HISTOGRAM_ENUMERATION("BackgroundMode.MenuItemClick", item,
« no previous file with comments | « no previous file | chrome/browser/lifetime/keep_alive_options.h » ('j') | chrome/browser/lifetime/keep_alive_options.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698