diff options
author | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-03 21:13:33 +0000 |
---|---|---|
committer | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-03 21:13:33 +0000 |
commit | 24c906804cc8d4e83da934a038ba3aca07db80bd (patch) | |
tree | c2b3ccdce6b50fabd8827eb24ae8cbcfec96a494 /chrome | |
parent | 0b97e76bef94eb1a70c873d5dbdba531b3943e95 (diff) | |
download | chromium_src-24c906804cc8d4e83da934a038ba3aca07db80bd.zip chromium_src-24c906804cc8d4e83da934a038ba3aca07db80bd.tar.gz chromium_src-24c906804cc8d4e83da934a038ba3aca07db80bd.tar.bz2 |
Make ProxyResolverV8 the default.
Replace the flag --v8-proxy-resolver with --winhttp-proxy-resolver to reflect new default.
BUG=74,2764
Review URL: http://codereview.chromium.org/62022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13110 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/net/chrome_url_request_context.cc | 6 | ||||
-rw-r--r-- | chrome/common/chrome_switches.cc | 8 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 2 |
3 files changed, 7 insertions, 9 deletions
diff --git a/chrome/browser/net/chrome_url_request_context.cc b/chrome/browser/net/chrome_url_request_context.cc index 81af0d4..ce76e69 100644 --- a/chrome/browser/net/chrome_url_request_context.cc +++ b/chrome/browser/net/chrome_url_request_context.cc @@ -43,7 +43,7 @@ static net::ProxyService* CreateProxyService(URLRequestContext* context, const CommandLine& command_line) { scoped_ptr<net::ProxyInfo> proxy_info(CreateProxyInfo(command_line)); - bool use_v8 = command_line.HasSwitch(switches::kV8ProxyResolver); + bool use_v8 = !command_line.HasSwitch(switches::kWinHttpProxyResolver); if (use_v8 && command_line.HasSwitch(switches::kSingleProcess)) { // See the note about V8 multithreading in net/proxy/proxy_resolver_v8.h // to understand why we have this limitation. @@ -52,8 +52,8 @@ static net::ProxyService* CreateProxyService(URLRequestContext* context, } return use_v8 ? - net::ProxyService::CreateUsingV8Resolver(proxy_info.get(), context) : - net::ProxyService::Create(proxy_info.get()); + net::ProxyService::CreateUsingV8Resolver(proxy_info.get(), context) : + net::ProxyService::Create(proxy_info.get()); } // static diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index c32cbb5..c12b578 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -233,11 +233,9 @@ const wchar_t kMakeDefaultBrowser[] = L"make-default-browser"; // affects HTTP and HTTPS requests. const wchar_t kProxyServer[] = L"proxy-server"; -// Enable alternate proxy autoconfig implementation, which downloads PAC -// scripts internally and executes them using V8 (as opposed to fetching -// and executing using WinHTTP). This cannot be used in conjunction with -// --single-process. -const wchar_t kV8ProxyResolver[] = L"v8-proxy-resolver"; +// Use WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is +// to use Chromium's network stack to fetch, and V8 to evaluate. +const wchar_t kWinHttpProxyResolver[] = L"winhttp-proxy-resolver"; // Chrome will support prefetching of DNS information. Until this becomes // the default, we'll provide a command line switch. diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index 8b51a7d..fb72d4f 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -78,7 +78,7 @@ extern const wchar_t kShowIcons[]; extern const wchar_t kMakeDefaultBrowser[]; extern const wchar_t kProxyServer[]; -extern const wchar_t kV8ProxyResolver[]; +extern const wchar_t kWinHttpProxyResolver[]; extern const wchar_t kDebugPrint[]; extern const wchar_t kDnsLogDetails[]; |