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

Unified Diff: apps/app_restore_service.cc

Issue 2623273011: Move Chrome terminating notification out of //apps (Closed)
Patch Set: remove DEPS rule Created 3 years, 11 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
« no previous file with comments | « apps/app_restore_service.h ('k') | chrome/browser/apps/app_shim/extension_app_shim_handler_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_restore_service.cc
diff --git a/apps/app_restore_service.cc b/apps/app_restore_service.cc
index a68c59edf8ad43340884fe501c9896ca5390ea0b..39e036d1c1f8657bec56111e1f2fa0b7822ecebc 100644
--- a/apps/app_restore_service.cc
+++ b/apps/app_restore_service.cc
@@ -66,6 +66,12 @@ bool AppRestoreService::IsAppRestorable(const std::string& extension_id) {
return ExtensionPrefs::Get(profile_)->IsExtensionRunning(extension_id);
}
+void AppRestoreService::OnApplicationTerminating() {
+ // We want to preserve the state when the app begins terminating, so stop
+ // listening to app lifetime events.
+ StopObservingAppLifetime();
+}
+
// static
AppRestoreService* AppRestoreService::Get(Profile* profile) {
return apps::AppRestoreServiceFactory::GetForProfile(profile);
@@ -90,12 +96,6 @@ void AppRestoreService::OnAppStop(Profile* profile, const std::string& app_id) {
RecordAppStop(app_id);
}
-void AppRestoreService::OnChromeTerminating() {
- // We want to preserve the state when the app begins terminating, so stop
- // listening to app lifetime events.
- StopObservingAppLifetime();
-}
-
void AppRestoreService::Shutdown() {
StopObservingAppLifetime();
}
« no previous file with comments | « apps/app_restore_service.h ('k') | chrome/browser/apps/app_shim/extension_app_shim_handler_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698