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 6799a9f8d7cfd295aac98df449c8ea787524779b..43b6a759e51c292771a69091fb0bfba43201a306 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 |
@@ -5,6 +5,7 @@ |
#include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h" |
#include "base/prefs/pref_service.h" |
+#include "chrome/browser/extensions/extension_system_factory.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" |
@@ -28,6 +29,7 @@ AppListSyncableServiceFactory::AppListSyncableServiceFactory() |
: BrowserContextKeyedServiceFactory( |
"AppListSyncableService", |
BrowserContextDependencyManager::GetInstance()) { |
+ DependsOn(extensions::ExtensionSystemFactory::GetInstance()); |
} |
AppListSyncableServiceFactory::~AppListSyncableServiceFactory() { |
@@ -35,8 +37,11 @@ AppListSyncableServiceFactory::~AppListSyncableServiceFactory() { |
BrowserContextKeyedService* |
AppListSyncableServiceFactory::BuildServiceInstanceFor( |
- content::BrowserContext* profile) const { |
- return new AppListSyncableService(static_cast<Profile*>(profile)); |
+ content::BrowserContext* browser_context) const { |
+ Profile* profile = static_cast<Profile*>(browser_context); |
+ extensions::ExtensionSystem* extension_system = |
+ extensions::ExtensionSystem::Get(profile); |
+ return new AppListSyncableService(profile, extension_system); |
} |
void AppListSyncableServiceFactory::RegisterProfilePrefs( |