Adds navigator.registerProtocolHandler.
BUG=11359
TEST=None at the moment
Review URL: http://codereview.chromium.org/6410115
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75681 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/test/testing_profile.cc b/chrome/test/testing_profile.cc
index 7eee1fe4..d523541 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/extensions/extension_pref_value_map.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/favicon_service.h"
@@ -278,6 +279,10 @@
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 @@
return NULL;
}
+ProtocolHandlerRegistry* TestingProfile::GetProtocolHandlerRegistry() {
+ return protocol_handler_registry_.get();
+}
+
SpellCheckHost* TestingProfile::GetSpellCheckHost() {
return NULL;
}