Index: chrome/browser/profiles/profile_impl.cc |
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc |
index fd72bb22ea9ed71e5a1b846a71b34263e516f0ab..0a3764a17398b0dfe64aefa14d571d4c028d017e 100644 |
--- a/chrome/browser/profiles/profile_impl.cc |
+++ b/chrome/browser/profiles/profile_impl.cc |
@@ -44,6 +44,7 @@ |
#include "chrome/browser/history/shortcuts_backend.h" |
#include "chrome/browser/history/top_sites.h" |
#include "chrome/browser/instant/instant_controller.h" |
+#include "chrome/browser/intents/web_intents_registry.h" |
#include "chrome/browser/metrics/metrics_service.h" |
#include "chrome/browser/net/chrome_url_request_context.h" |
#include "chrome/browser/net/gaia/token_service.h" |
@@ -1277,6 +1278,15 @@ PersonalDataManager* ProfileImpl::GetPersonalDataManager() { |
return personal_data_manager_.get(); |
} |
+WebIntentsRegistry* ProfileImpl::GetWebIntentsRegistry() { |
+ if (!web_intents_registry_.get()) { |
+ web_intents_registry_ = new WebIntentsRegistry(); |
+ web_intents_registry_->Initialize( |
+ GetWebDataService(Profile::EXPLICIT_ACCESS)); |
+ } |
+ return web_intents_registry_.get(); |
+} |
+ |
fileapi::FileSystemContext* ProfileImpl::GetFileSystemContext() { |
CreateQuotaManagerAndClients(); |
return file_system_context_.get(); |