summaryrefslogtreecommitdiffstats
path: root/chrome/service/net/service_url_request_context.cc
diff options
context:
space:
mode:
authormmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-13 00:41:29 +0000
committermmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-13 00:41:29 +0000
commit2944afa8913462c5a6a873a8acb9d54a1741e627 (patch)
tree4ff0c5e953ca4cadc1dd4106b9c056a44f9e251e /chrome/service/net/service_url_request_context.cc
parent7e885e72f21fdeb77895f67ca086286e85347807 (diff)
downloadchromium_src-2944afa8913462c5a6a873a8acb9d54a1741e627.zip
chromium_src-2944afa8913462c5a6a873a8acb9d54a1741e627.tar.gz
chromium_src-2944afa8913462c5a6a873a8acb9d54a1741e627.tar.bz2
Add URLRequestJobFactories to URLRequestContexts without one.
Currently a URLRequestJobFactory is optional, as the global URLRequestJobManager passes jobs on to the URLRequestFilter and global http/https/ws/wss factories. In order to be able to eliminate the global URLRequestJobManager object, first have to give all contexts their own URLRequestJobFactory. BUG=81979 TBR=ajwong@chromium.org (Who actually signed off on this, but Rietveld ignored his email). Review URL: https://codereview.chromium.org/311393002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276867 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service/net/service_url_request_context.cc')
-rw-r--r--chrome/service/net/service_url_request_context.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/service/net/service_url_request_context.cc b/chrome/service/net/service_url_request_context.cc
index 005ae15..edc2104 100644
--- a/chrome/service/net/service_url_request_context.cc
+++ b/chrome/service/net/service_url_request_context.cc
@@ -25,6 +25,7 @@
#include "net/proxy/proxy_service.h"
#include "net/ssl/ssl_config_service_defaults.h"
#include "net/url_request/static_http_user_agent_settings.h"
+#include "net/url_request/url_request_job_factory_impl.h"
#include "net/url_request/url_request_throttler_manager.h"
namespace {
@@ -136,6 +137,7 @@ ServiceURLRequestContext::ServiceURLRequestContext(
network_session.get(), net::HttpCache::DefaultBackend::InMemory(0)));
// In-memory cookie store.
storage_.set_cookie_store(new net::CookieMonster(NULL, NULL));
+ storage_.set_job_factory(new net::URLRequestJobFactoryImpl());
storage_.set_http_user_agent_settings(new net::StaticHttpUserAgentSettings(
"en-us,fr", user_agent));
}