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( |