Index: chrome/browser/intents/web_intents_registry_factory.cc |
diff --git a/chrome/browser/intents/web_intents_registry_factory.cc b/chrome/browser/intents/web_intents_registry_factory.cc |
index 2b2228673c3764ddf69e40eddd1e2c25b9199299..4adcda68438e398dcf8a3df96fb86f7334fd9cdc 100644 |
--- a/chrome/browser/intents/web_intents_registry_factory.cc |
+++ b/chrome/browser/intents/web_intents_registry_factory.cc |
@@ -6,6 +6,8 @@ |
#include "chrome/browser/intents/web_intents_registry_factory.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/profiles/profile_dependency_manager.h" |
+#include "chrome/browser/webdata/web_data_service_factory.h" |
+#include "chrome/browser/webdata/web_data_service_factory.h" |
// static |
WebIntentsRegistry* WebIntentsRegistryFactory::GetForProfile(Profile* profile) { |
@@ -16,8 +18,8 @@ WebIntentsRegistry* WebIntentsRegistryFactory::GetForProfile(Profile* profile) { |
WebIntentsRegistryFactory::WebIntentsRegistryFactory() |
: ProfileKeyedServiceFactory("WebIntentsRegistry", |
ProfileDependencyManager::GetInstance()) { |
+ DependsOn(WebDataServiceFactory::GetInstance()); |
// TODO(erg): For Shutdown() order, we need to: |
- // DependsOn(WebDataServiceFactory::GetInstance()); |
// DependsOn(ExtensionServiceFactory::GetInstance()); |
} |
@@ -32,7 +34,8 @@ WebIntentsRegistryFactory* WebIntentsRegistryFactory::GetInstance() { |
ProfileKeyedService* WebIntentsRegistryFactory::BuildServiceInstanceFor( |
Profile* profile) const { |
WebIntentsRegistry* registry = new WebIntentsRegistry; |
- registry->Initialize(profile->GetWebDataService(Profile::EXPLICIT_ACCESS), |
+ registry->Initialize(WebDataServiceFactory::GetForProfile( |
+ profile, Profile::EXPLICIT_ACCESS), |
profile->GetExtensionService()); |
return registry; |
} |