| Index: chromecast/browser/url_request_context_factory.cc
|
| diff --git a/chromecast/browser/url_request_context_factory.cc b/chromecast/browser/url_request_context_factory.cc
|
| index 849adafd8f3fa7df403858c9f46eab5095733450..33f878df39378d789d95282a6a46ed8d58412e0f 100644
|
| --- a/chromecast/browser/url_request_context_factory.cc
|
| +++ b/chromecast/browser/url_request_context_factory.cc
|
| @@ -229,8 +229,8 @@ void URLRequestContextFactory::InitializeMainContextDependencies(
|
| return;
|
|
|
| main_transaction_factory_.reset(transaction_factory);
|
| - std::unique_ptr<net::URLRequestJobFactoryImpl> job_factory(
|
| - new net::URLRequestJobFactoryImpl());
|
| + std::unique_ptr<net::URLRequestJobFactoryImpl> job_factory =
|
| + net::URLRequestJobFactoryImpl::CreateWithHttpProtocolHandlers();
|
| // Keep ProtocolHandlers added in sync with
|
| // CastContentBrowserClient::IsHandledURL().
|
| bool set_protocol = false;
|
| @@ -305,7 +305,8 @@ net::URLRequestContext* URLRequestContextFactory::CreateSystemRequestContext() {
|
| PopulateNetworkSessionParams(false, &system_params);
|
| system_transaction_factory_.reset(new net::HttpNetworkLayer(
|
| new net::HttpNetworkSession(system_params)));
|
| - system_job_factory_.reset(new net::URLRequestJobFactoryImpl());
|
| + system_job_factory_ =
|
| + net::URLRequestJobFactoryImpl::CreateWithHttpProtocolHandlers();
|
| system_cookie_store_ =
|
| content::CreateCookieStore(content::CookieStoreConfig());
|
|
|
|
|