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

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

Issue 2493973003: Display "Restart to update" dialog to Chrome OS users. (Closed)
Patch Set: Rebased CL Created 4 years 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..cccbe176fdc7953d9b210f95780e3aa43a4796a7 100644
--- a/chrome/browser/lifetime/application_lifetime.h
+++ b/chrome/browser/lifetime/application_lifetime.h
@@ -76,7 +76,13 @@ void NotifyAppTerminating();
// Send out notifications.
// For ChromeOS, also request session manager to end the session.
+// |lifetime| is used to signal whether or not a reboot should be forced. By
+// default, the functions only reboot the system if an update is available. When
+// a component flash update is present, but not a system update, the
+// kForceReboot flag is passed.
+enum class RebootPolicy { kForceReboot, kOptionalReboot };
void NotifyAndTerminate(bool fast_path);
+void NotifyAndTerminate(bool fast_path, RebootPolicy reboot_policy);
#if !defined(OS_ANDROID)
// Called once the application is exiting.

Powered by Google App Engine
This is Rietveld 408576698