diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-24 14:14:02 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-24 14:14:02 +0000 |
commit | 7505bca3ff31b21eb624189d0d83c905a7c1d82d (patch) | |
tree | 8471da02a624e2acc81c8c8bc92d48e23865118e /chrome | |
parent | 961fefb5612835ff15c81790b8e2944501a13223 (diff) | |
download | chromium_src-7505bca3ff31b21eb624189d0d83c905a7c1d82d.zip chromium_src-7505bca3ff31b21eb624189d0d83c905a7c1d82d.tar.gz chromium_src-7505bca3ff31b21eb624189d0d83c905a7c1d82d.tar.bz2 |
Make DHCP WPAD on by default.
BUG=18575
TEST=Run Chrome on Windows without any flags. Enable auto-detect in proxy configuration. Net log should show attempts to auto-detect via DHCP.
Review URL: http://codereview.chromium.org/7034035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86422 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/net/connection_tester.cc | 4 | ||||
-rw-r--r-- | chrome/browser/net/proxy_service_factory.cc | 4 | ||||
-rw-r--r-- | chrome/common/chrome_switches.cc | 8 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 2 |
4 files changed, 8 insertions, 10 deletions
diff --git a/chrome/browser/net/connection_tester.cc b/chrome/browser/net/connection_tester.cc index 2cf1e42..4ca5b42 100644 --- a/chrome/browser/net/connection_tester.cc +++ b/chrome/browser/net/connection_tester.cc @@ -187,8 +187,8 @@ class ExperimentURLRequestContext : public net::URLRequestContext { net::DhcpProxyScriptFetcherFactory dhcp_factory; if (CommandLine::ForCurrentProcess()->HasSwitch( - switches::kEnableDhcpWpad)) { - dhcp_factory.set_enabled(true); + switches::kDisableDhcpWpad)) { + dhcp_factory.set_enabled(false); } proxy_service->reset(net::ProxyService::CreateUsingV8ProxyResolver( diff --git a/chrome/browser/net/proxy_service_factory.cc b/chrome/browser/net/proxy_service_factory.cc index cf97923..898596eb 100644 --- a/chrome/browser/net/proxy_service_factory.cc +++ b/chrome/browser/net/proxy_service_factory.cc @@ -86,8 +86,8 @@ net::ProxyService* ProxyServiceFactory::CreateProxyService( net::ProxyService* proxy_service; if (use_v8) { net::DhcpProxyScriptFetcherFactory dhcp_factory; - if (command_line.HasSwitch(switches::kEnableDhcpWpad)) { - dhcp_factory.set_enabled(true); + if (command_line.HasSwitch(switches::kDisableDhcpWpad)) { + dhcp_factory.set_enabled(false); } proxy_service = net::ProxyService::CreateUsingV8ProxyResolver( diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index d8ff05d..ecfd141 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -214,6 +214,9 @@ const char kDisableCustomJumpList[] = "disable-custom-jumplist"; // Browser flag to disable the web inspector for all renderers. const char kDisableDevTools[] = "disable-dev-tools"; +// Disables retrieval of PAC URLs from DHCP as per the WPAD standard. +const char kDisableDhcpWpad[] = "disable-dhcp-wpad"; + // Disable extensions. const char kDisableExtensions[] = "disable-extensions"; @@ -410,11 +413,6 @@ const char kEnableConnectBackupJobs[] = "enable-connect-backup-jobs"; // Enables web developers to create apps for Chrome without using crx packages. const char kEnableCrxlessWebApps[] = "enable-crxless-web-apps"; -// Enables retrieval of PAC URLs from DHCP as per the WPAD standard. Note -// that this feature is not supported on all platforms, and using the flag -// is a no-op on such platforms. -const char kEnableDhcpWpad[] = "enable-dhcp-wpad"; - // Enable DNS side checking of certificates. Still experimental, should only // be used by developers at the current time. const char kEnableDNSCertProvenanceChecking[] = diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index 52b3055..b673e36 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -72,6 +72,7 @@ extern const char kDisableClientSidePhishingDetection[]; extern const char kDisableConnectBackupJobs[]; extern const char kDisableCustomJumpList[]; extern const char kDisableDevTools[]; +extern const char kDisableDhcpWpad[]; extern const char kDisableExtensionsFileAccessCheck[]; extern const char kDisableExtensions[]; extern const char kDisableFlashSandbox[]; @@ -124,7 +125,6 @@ extern const char kEnableCompactNavigation[]; extern const char kEnableCompositeToTexture[]; extern const char kEnableConnectBackupJobs[]; extern const char kEnableCrxlessWebApps[]; -extern const char kEnableDhcpWpad[]; extern const char kEnableDNSCertProvenanceChecking[]; extern const char kEnableDNSSECCerts[]; extern const char kEnableExperimentalAppManifests[]; |