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

Unified Diff: chromecast/browser/url_request_context_factory.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: 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 99013e0849096120e668ae237e9e8f94eb5f00a5..655df8bcade59e6d6058d9a64f32beffd0246bdb 100644
--- a/chromecast/browser/url_request_context_factory.cc
+++ b/chromecast/browser/url_request_context_factory.cc
@@ -227,8 +227,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::CreateWithDefaultProtocolHandlers();
// Keep ProtocolHandlers added in sync with
// CastContentBrowserClient::IsHandledURL().
bool set_protocol = false;
@@ -301,7 +301,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::CreateWithDefaultProtocolHandlers();
system_cookie_store_ =
content::CreateCookieStore(content::CookieStoreConfig());

Powered by Google App Engine
This is Rietveld 408576698