Index: chrome/test/testing_profile.cc |
diff --git a/chrome/test/testing_profile.cc b/chrome/test/testing_profile.cc |
index 9d725992f7917536b1e83191075e1807a0e99533..d560974ca9a3e164228e5d8822dc65510749e3c1 100644 |
--- a/chrome/test/testing_profile.cc |
+++ b/chrome/test/testing_profile.cc |
@@ -16,6 +16,7 @@ |
#include "chrome/browser/bookmarks/bookmark_model.h" |
#include "chrome/browser/browser_thread.h" |
#include "chrome/browser/content_settings/host_content_settings_map.h" |
+#include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
#include "chrome/browser/dom_ui/ntp_resource_cache.h" |
#include "chrome/browser/extensions/extension_pref_value_map.h" |
#include "chrome/browser/extensions/extension_service.h" |
@@ -278,6 +279,10 @@ void TestingProfile::CreateAutocompleteClassifier() { |
autocomplete_classifier_.reset(new AutocompleteClassifier(this)); |
} |
+void TestingProfile::CreateProtocolHandlerRegistry() { |
+ protocol_handler_registry_ = new ProtocolHandlerRegistry(this); |
+} |
+ |
void TestingProfile::CreateWebDataService(bool delete_file) { |
if (web_data_service_.get()) |
web_data_service_->Shutdown(); |
@@ -652,6 +657,10 @@ TabRestoreService* TestingProfile::GetTabRestoreService() { |
return NULL; |
} |
+ProtocolHandlerRegistry* TestingProfile::GetProtocolHandlerRegistry() { |
+ return protocol_handler_registry_.get(); |
+} |
+ |
SpellCheckHost* TestingProfile::GetSpellCheckHost() { |
return NULL; |
} |