Index: chrome/browser/ui/app_list/app_list_syncable_service_factory.cc |
diff --git a/chrome/browser/ui/app_list/app_list_syncable_service_factory.cc b/chrome/browser/ui/app_list/app_list_syncable_service_factory.cc |
index 09a6a80c0364ed7d0ced63d019033828b11e67d0..3ef9d923ca6bddae213d09ba1007b5845567c89b 100644 |
--- a/chrome/browser/ui/app_list/app_list_syncable_service_factory.cc |
+++ b/chrome/browser/ui/app_list/app_list_syncable_service_factory.cc |
@@ -4,7 +4,10 @@ |
#include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h" |
+#include <set> |
+ |
#include "base/prefs/pref_service.h" |
+#include "chrome/browser/apps/drive/drive_app_provider.h" |
#include "chrome/browser/profiles/incognito_helpers.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/ui/app_list/app_list_syncable_service.h" |
@@ -50,8 +53,16 @@ AppListSyncableServiceFactory::AppListSyncableServiceFactory() |
"AppListSyncableService", |
BrowserContextDependencyManager::GetInstance()) { |
VLOG(1) << "AppListSyncableServiceFactory()"; |
- DependsOn( |
+ typedef std::set<BrowserContextKeyedServiceFactory*> FactorySet; |
+ FactorySet dependent_factories; |
+ dependent_factories.insert( |
extensions::ExtensionsBrowserClient::Get()->GetExtensionSystemFactory()); |
+ DriveAppProvider::AppendDependsOnFactories(&dependent_factories); |
+ for (FactorySet::iterator it = dependent_factories.begin(); |
+ it != dependent_factories.end(); |
+ ++it) { |
+ DependsOn(*it); |
+ } |
} |
AppListSyncableServiceFactory::~AppListSyncableServiceFactory() { |