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

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: Cleanups and fixes. 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 503983f36c0ff326deb006492b0fc88e23e98f39..710fee507b189dfd5b0b5fbefc205a52d6718cfe 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"
@@ -1282,6 +1283,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