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

Unified Diff: chrome/test/testing_profile.cc

Issue 6410115: Adds navigator.registerProtocolHandler. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Sync'd, disallow non-same origin rph, adds hostname to the infobar. Created 9 years, 10 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/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;
}

Powered by Google App Engine
This is Rietveld 408576698