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

Unified Diff: chrome/browser/io_thread.cc

Issue 1888963004: Add HttpProtocolHandler and convert everything to use it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-supports-scheme
Patch Set: even more rebase Created 4 years, 8 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/io_thread.cc
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index 99a914c8229e65878c55c0d0a8716ddabe5f111d..66ace65e901bd2379937e09b45ea373ae78392bf 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -1660,8 +1660,8 @@ net::URLRequestContext* IOThread::ConstructSystemRequestContext(
globals->http_auth_handler_factory.get());
context->set_proxy_service(globals->system_proxy_service.get());
- globals->system_url_request_job_factory.reset(
- new net::URLRequestJobFactoryImpl());
+ globals->system_url_request_job_factory =
+ net::URLRequestJobFactoryImpl::CreateWithDefaultProtocolHandlers();
context->set_job_factory(globals->system_url_request_job_factory.get());
context->set_cookie_store(globals->system_cookie_store.get());
@@ -1748,8 +1748,8 @@ net::URLRequestContext* IOThread::ConstructProxyScriptFetcherContext(
context->set_http_transaction_factory(
globals->proxy_script_fetcher_http_transaction_factory.get());
- std::unique_ptr<net::URLRequestJobFactoryImpl> job_factory(
- new net::URLRequestJobFactoryImpl());
+ std::unique_ptr<net::URLRequestJobFactoryImpl> job_factory =
+ net::URLRequestJobFactoryImpl::CreateWithDefaultProtocolHandlers();
job_factory->SetProtocolHandler(
url::kDataScheme, base::WrapUnique(new net::DataProtocolHandler()));

Powered by Google App Engine
This is Rietveld 408576698