summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-14 00:44:59 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-14 00:44:59 +0000
commit1517425f81d0f49afcf4cc49f62ee2aa1995a4ca (patch)
tree5e3b44c0eecc5e95322b65e93c3b6a33874dcec5 /chrome/browser/net
parent2687ad7d62c737430aa780f9db9a0a166931a735 (diff)
downloadchromium_src-1517425f81d0f49afcf4cc49f62ee2aa1995a4ca.zip
chromium_src-1517425f81d0f49afcf4cc49f62ee2aa1995a4ca.tar.gz
chromium_src-1517425f81d0f49afcf4cc49f62ee2aa1995a4ca.tar.bz2
Add an option ProxyService::Create() to disable use of proxy auto-config.
BUG=40797 Review URL: http://codereview.chromium.org/3646004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62487 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net')
-rw-r--r--chrome/browser/net/chrome_url_request_context.cc16
-rw-r--r--chrome/browser/net/connection_tester.cc3
2 files changed, 13 insertions, 6 deletions
diff --git a/chrome/browser/net/chrome_url_request_context.cc b/chrome/browser/net/chrome_url_request_context.cc
index e1aa4ae..0134717 100644
--- a/chrome/browser/net/chrome_url_request_context.cc
+++ b/chrome/browser/net/chrome_url_request_context.cc
@@ -122,13 +122,19 @@ net::ProxyService* CreateProxyService(
}
}
- return net::ProxyService::Create(
+ if (use_v8) {
+ return net::ProxyService::CreateUsingV8ProxyResolver(
+ proxy_config_service,
+ num_pac_threads,
+ context,
+ net_log,
+ io_loop);
+ }
+
+ return net::ProxyService::CreateUsingSystemProxyResolver(
proxy_config_service,
- use_v8,
num_pac_threads,
- context,
- net_log,
- io_loop);
+ net_log);
}
// ----------------------------------------------------------------------------
diff --git a/chrome/browser/net/connection_tester.cc b/chrome/browser/net/connection_tester.cc
index 91d6afe..8658240 100644
--- a/chrome/browser/net/connection_tester.cc
+++ b/chrome/browser/net/connection_tester.cc
@@ -159,7 +159,8 @@ class ExperimentURLRequestContext : public URLRequestContext {
return net::ERR_NOT_IMPLEMENTED;
}
- *proxy_service = net::ProxyService::Create(config_service.release(), true,
+ *proxy_service = net::ProxyService::CreateUsingV8ProxyResolver(
+ config_service.release(),
0u, this, NULL, MessageLoop::current());
return net::OK;