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

Unified Diff: chrome/browser/net/chrome_url_request_context.cc

Issue 6410115: Adds navigator.registerProtocolHandler. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: 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/browser/net/chrome_url_request_context.cc
diff --git a/chrome/browser/net/chrome_url_request_context.cc b/chrome/browser/net/chrome_url_request_context.cc
index e42ae2de48a8a40453b2cb66724ff9bd61b15a9a..08b587e4ed4d7c98e9327d9e1ecf6beeb85d743c 100644
--- a/chrome/browser/net/chrome_url_request_context.cc
+++ b/chrome/browser/net/chrome_url_request_context.cc
@@ -843,6 +843,7 @@ ChromeURLRequestContextFactory::ChromeURLRequestContextFactory(Profile* profile)
extension_info_map_ = profile->GetExtensionInfoMap();
extension_io_event_router_ = profile->GetExtensionIOEventRouter();
prerender_manager_ = profile->GetPrerenderManager();
+ protocol_handler_registry_ = profile->GetProtocolHandlerRegistry();
}
ChromeURLRequestContextFactory::~ChromeURLRequestContextFactory() {
@@ -870,4 +871,5 @@ void ChromeURLRequestContextFactory::ApplyProfileParametersToContext(
context->set_extension_info_map(extension_info_map_);
context->set_extension_io_event_router(extension_io_event_router_);
context->set_prerender_manager(prerender_manager_);
+ context->set_protocol_handler_registry(protocol_handler_registry_);
}

Powered by Google App Engine
This is Rietveld 408576698