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

Unified Diff: chromecast/shell/browser/url_request_context_factory.cc

Issue 606513002: Pass the system url request context getter to the cast service so that it can be used by various sy… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/shell/browser/url_request_context_factory.cc
diff --git a/chromecast/shell/browser/url_request_context_factory.cc b/chromecast/shell/browser/url_request_context_factory.cc
index 9ab7c7d8b8ac79962e4f03a3f4f446b8058a5707..e61bc6a914e9ae91f41fc0ce67cd859c85e4be8c 100644
--- a/chromecast/shell/browser/url_request_context_factory.cc
+++ b/chromecast/shell/browser/url_request_context_factory.cc
@@ -303,6 +303,7 @@ 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());
net::URLRequestContext* system_context = new net::URLRequestContext();
system_context->set_host_resolver(host_resolver_.get());
@@ -320,6 +321,7 @@ net::URLRequestContext* URLRequestContextFactory::CreateSystemRequestContext() {
system_transaction_factory_.get());
system_context->set_http_user_agent_settings(
http_user_agent_settings_.get());
+ system_context->set_job_factory(system_job_factory_.get());
system_context->set_cookie_store(
content::CreateCookieStore(content::CookieStoreConfig()));
return system_context;
« chromecast/service/cast_service.h ('K') | « chromecast/shell/browser/url_request_context_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698