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

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

Issue 2493973003: Display "Restart to update" dialog to Chrome OS users. (Closed)
Patch Set: Display "Restart to update" dialog to Chrome OS users. 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..2675e849709338b82fb7bd085da82a81dffb731c 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 ApplicationLifetime { kForceReboot, kOptionalReboot };
James Cook 2016/12/03 00:18:20 nit: I wouldn't call the class itself ApplicationL
Nico 2016/12/03 00:23:13 Yes, I thought this was in a class and used a plai
Greg K 2016/12/06 00:13:15 Done.
void NotifyAndTerminate(bool fast_path);
+void NotifyAndTerminate(bool fast_path, ApplicationLifetime lifetime);
#if !defined(OS_ANDROID)
// Called once the application is exiting.
« no previous file with comments | « chrome/browser/component_updater/pepper_flash_component_installer.cc ('k') | chrome/browser/lifetime/application_lifetime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698