summaryrefslogtreecommitdiffstats
path: root/apps/app_restore_service_factory.cc
diff options
context:
space:
mode:
authorjackhou@chromium.org <jackhou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-18 14:22:12 +0000
committerjackhou@chromium.org <jackhou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-18 14:22:12 +0000
commit4b7111f2c1f379da798835b9a7f7985138542d84 (patch)
tree38e6e22dad15dcf948a0eac1c83bac50998a97f4 /apps/app_restore_service_factory.cc
parent42265601854dfe527c6fd2522d4c9b6c15752273 (diff)
downloadchromium_src-4b7111f2c1f379da798835b9a7f7985138542d84.zip
chromium_src-4b7111f2c1f379da798835b9a7f7985138542d84.tar.gz
chromium_src-4b7111f2c1f379da798835b9a7f7985138542d84.tar.bz2
Factor out AppLifetimeMonitor.
AppLifetimeMonitor listens to extension host notifications and observes ShellWindowRegistry. It sends out notifications when: - an app starts - the first shell window opens - the last shell window closes - the app stops BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204487 Review URL: https://chromiumcodereview.appspot.com/16412002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206988 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/app_restore_service_factory.cc')
-rw-r--r--apps/app_restore_service_factory.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_restore_service_factory.cc b/apps/app_restore_service_factory.cc
index ffd31a7..a762e53 100644
--- a/apps/app_restore_service_factory.cc
+++ b/apps/app_restore_service_factory.cc
@@ -4,8 +4,8 @@
#include "apps/app_restore_service_factory.h"
+#include "apps/app_lifetime_monitor_factory.h"
#include "apps/app_restore_service.h"
-#include "chrome/browser/extensions/shell_window_registry.h"
#include "chrome/browser/profiles/profile.h"
#include "components/browser_context_keyed_service/browser_context_dependency_manager.h"
@@ -25,7 +25,7 @@ AppRestoreServiceFactory::AppRestoreServiceFactory()
: BrowserContextKeyedServiceFactory(
"AppRestoreService",
BrowserContextDependencyManager::GetInstance()) {
- DependsOn(extensions::ShellWindowRegistry::Factory::GetInstance());
+ DependsOn(AppLifetimeMonitorFactory::GetInstance());
}
AppRestoreServiceFactory::~AppRestoreServiceFactory() {