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

Unified Diff: remoting/base/url_request_context.cc

Issue 311393002: Add URLRequestJobFactories to URLRequestContexts without one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add two more that aren't tested Created 6 years, 6 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: remoting/base/url_request_context.cc
diff --git a/remoting/base/url_request_context.cc b/remoting/base/url_request_context.cc
index 60f620d3f3e95685ff24caa5d044f0239ff87890..39985ab4a23080dbebf07038569b89df32459ae0 100644
--- a/remoting/base/url_request_context.cc
+++ b/remoting/base/url_request_context.cc
@@ -15,6 +15,7 @@
#include "net/proxy/proxy_config_service.h"
#include "net/proxy/proxy_service.h"
#include "net/ssl/ssl_config_service_defaults.h"
+#include "net/url_request/url_request_job_factory_impl.h"
#include "remoting/base/vlog_net_log.h"
#if defined(OS_WIN)
@@ -95,6 +96,7 @@ URLRequestContext::URLRequestContext(
scoped_ptr<net::HttpServerProperties>(
new net::HttpServerPropertiesImpl()));
storage_.set_transport_security_state(new net::TransportSecurityState);
+ storage_.set_job_factory(new net::URLRequestJobFactoryImpl());
net::HttpNetworkSession::Params session_params;
session_params.host_resolver = host_resolver();

Powered by Google App Engine
This is Rietveld 408576698