| 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()));
|
|
|