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

Unified Diff: chrome/test/base/testing_profile.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/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index ec0a0a39fd0e226b7c3aa25730cc623faf14e4c0..ca2bf5005fbf8dafd65a9a8febf8d7db91dfd7b6 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -26,6 +26,7 @@
#include "chrome/browser/history/history.h"
#include "chrome/browser/history/history_backend.h"
#include "chrome/browser/history/top_sites.h"
+#include "chrome/browser/intents/web_intents_registry.h"
#include "chrome/browser/net/gaia/token_service.h"
#include "chrome/browser/net/pref_proxy_config_service.h"
#include "chrome/browser/notifications/desktop_notification_service.h"
@@ -528,6 +529,14 @@ PersonalDataManager* TestingProfile::GetPersonalDataManager() {
return NULL;
}
+void TestingProfile::SetWebIntentsRegistry(WebIntentsRegistry* registry) {
+ web_intents_registry_ = registry;
+}
+
+WebIntentsRegistry* TestingProfile::GetWebIntentsRegistry() {
+ return web_intents_registry_.get();
+}
+
fileapi::FileSystemContext* TestingProfile::GetFileSystemContext() {
if (!file_system_context_) {
file_system_context_ = new fileapi::FileSystemContext(
« chrome/browser/webdata/web_intents_table.cc ('K') | « chrome/test/base/testing_profile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698