Index: chrome/test/testing_profile.cc |
diff --git a/chrome/test/testing_profile.cc b/chrome/test/testing_profile.cc |
index 00af1d14de0a832e559cdd65ae82b2394e8112fa..60b449ac60c501b13e274f223f4f1ac0fbd1c2cb 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_service.h" |
#include "chrome/browser/extensions/extension_pref_value_map.h" |
@@ -276,6 +277,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(); |