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. |