diff options
Diffstat (limited to 'apps/app_load_service.cc')
-rw-r--r-- | apps/app_load_service.cc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/apps/app_load_service.cc b/apps/app_load_service.cc index cfcef3e..8d816f5 100644 --- a/apps/app_load_service.cc +++ b/apps/app_load_service.cc @@ -115,8 +115,10 @@ void AppLoadService::Observe(int type, if (!unload_info->extension->is_platform_app()) break; + extensions::ExtensionPrefs* extension_prefs = + extensions::ExtensionPrefs::Get(profile_); if (WasUnloadedForReload(*unload_info) && - HasAppWindows(unload_info->extension->id()) && + extension_prefs->IsActive(unload_info->extension->id()) && !HasPostReloadAction(unload_info->extension->id())) { post_reload_actions_[unload_info->extension->id()].action_type = LAUNCH; } @@ -127,12 +129,6 @@ void AppLoadService::Observe(int type, } } -bool AppLoadService::HasAppWindows(const std::string& extension_id) { - return !AppWindowRegistry::Get(profile_) - ->GetAppWindowsForApp(extension_id) - .empty(); -} - bool AppLoadService::WasUnloadedForReload( const extensions::UnloadedExtensionInfo& unload_info) { if (unload_info.reason == extensions::UnloadedExtensionInfo::REASON_DISABLE) { |