Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2012)

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 7601013: Web Intents: Hook up the register intent InfoBar with the WebIntentsRegistry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes and more\! Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698