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

Unified Diff: components/policy/core/common/cloud/system_policy_request_context.cc

Issue 172463003: Copy the job factory for the SystemPolicyRequestContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/cloud/system_policy_request_context.cc
diff --git a/components/policy/core/common/cloud/system_policy_request_context.cc b/components/policy/core/common/cloud/system_policy_request_context.cc
index ebbb8766e4cc3e94a56f6c72dd80d5ded828c251..1aaec9ee19721a53f1b77c3cb76b1a5909c56f62 100644
--- a/components/policy/core/common/cloud/system_policy_request_context.cc
+++ b/components/policy/core/common/cloud/system_policy_request_context.cc
@@ -43,6 +43,11 @@ SystemPolicyRequestContext::GetURLRequestContext() {
context_->set_ssl_config_service(
system_context->ssl_config_service());
+ // Share the job factory (if there is one). This allows tests to intercept
+ // requests made via this request context if they install protocol handlers
+ // at the system request context.
+ context_->set_job_factory(system_context->job_factory());
+
// Set our custom UserAgent.
context_->set_http_user_agent_settings(&http_user_agent_settings_);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698