| 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 f6e75c929b9d0e67a99226e647c3a5846b12f22f..4f5ae337d5d4a721b7c050fa98fc29824dfa269c 100644
|
| --- a/chrome/browser/intents/web_intents_registry_factory.cc
|
| +++ b/chrome/browser/intents/web_intents_registry_factory.cc
|
| @@ -9,6 +9,8 @@
|
| #include "chrome/browser/intents/web_intents_registry.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) {
|
| @@ -19,8 +21,7 @@ WebIntentsRegistry* WebIntentsRegistryFactory::GetForProfile(Profile* profile) {
|
| WebIntentsRegistryFactory::WebIntentsRegistryFactory()
|
| : ProfileKeyedServiceFactory("WebIntentsRegistry",
|
| ProfileDependencyManager::GetInstance()) {
|
| - // TODO(erg): For Shutdown() order, we need to:
|
| - // DependsOn(WebDataServiceFactory::GetInstance());
|
| + DependsOn(WebDataServiceFactory::GetInstance());
|
| DependsOn(ExtensionSystemFactory::GetInstance());
|
| }
|
|
|
| @@ -35,7 +36,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;
|
| }
|
|
|