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(); |
} |