summaryrefslogtreecommitdiffstats
path: root/net/proxy
diff options
context:
space:
mode:
authorthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-14 14:56:27 +0000
committerthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-14 14:56:27 +0000
commit88a2c4078d51ef9c5aec9270d8f72e517ad94e4e (patch)
treea81dd5083fccc7f60028a25ecb554916ba26cf80 /net/proxy
parentdd43578d4929c6502944871bc752905d5b61566f (diff)
downloadchromium_src-88a2c4078d51ef9c5aec9270d8f72e517ad94e4e.zip
chromium_src-88a2c4078d51ef9c5aec9270d8f72e517ad94e4e.tar.gz
chromium_src-88a2c4078d51ef9c5aec9270d8f72e517ad94e4e.tar.bz2
Trying to green up the tree, lots of mac and win red around this cl.
Revert 59362 - net: Rename ProxyService::CreateNull to ProxyService::CreateDirect. (Note: This was a TODO for eroman). BUG=None TEST=trybots Review URL: http://codereview.chromium.org/3336021 TBR=tfarina@chromium.org Review URL: http://codereview.chromium.org/3444001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59373 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy')
-rw-r--r--net/proxy/proxy_service.cc2
-rw-r--r--net/proxy/proxy_service.h6
2 files changed, 5 insertions, 3 deletions
diff --git a/net/proxy/proxy_service.cc b/net/proxy/proxy_service.cc
index c74b8b0..3d1539f 100644
--- a/net/proxy/proxy_service.cc
+++ b/net/proxy/proxy_service.cc
@@ -426,7 +426,7 @@ ProxyService* ProxyService::CreateFixed(const ProxyConfig& pc) {
}
// static
-ProxyService* ProxyService::CreateDirect() {
+ProxyService* ProxyService::CreateNull() {
// Use direct connections.
return new ProxyService(new ProxyConfigServiceDirect, new ProxyResolverNull,
NULL);
diff --git a/net/proxy/proxy_service.h b/net/proxy/proxy_service.h
index 8e53970..990830e 100644
--- a/net/proxy/proxy_service.h
+++ b/net/proxy/proxy_service.h
@@ -177,8 +177,10 @@ class ProxyService : public base::RefCountedThreadSafe<ProxyService>,
// specified fixed settings. |pc| must not be NULL.
static ProxyService* CreateFixed(const ProxyConfig& pc);
- // Creates a proxy service that uses a DIRECT connection for all requests.
- static ProxyService* CreateDirect();
+ // Creates a proxy service that always fails to fetch the proxy configuration,
+ // so it falls back to direct connect.
+ // TODO(eroman): Rename to CreateDirect().
+ static ProxyService* CreateNull();
// This method is used by tests to create a ProxyService that returns a
// hardcoded proxy fallback list (|pac_string|) for every URL.