summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authordarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-12 05:11:38 +0000
committerdarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-12 05:11:38 +0000
commit82f954e39c77f4dc20d39c88ca49982a9e48cf94 (patch)
treec4f4908b6dacd9ae81070ca080b7fc13b5ebd151 /webkit
parentbd9b55430689403d9b17fcfe633266c8ad650df4 (diff)
downloadchromium_src-82f954e39c77f4dc20d39c88ca49982a9e48cf94.zip
chromium_src-82f954e39c77f4dc20d39c88ca49982a9e48cf94.tar.gz
chromium_src-82f954e39c77f4dc20d39c88ca49982a9e48cf94.tar.bz2
Change the ProxyService to work with ASCII strings.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@711 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/glue/plugins/mozilla_extensions.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/webkit/glue/plugins/mozilla_extensions.cc b/webkit/glue/plugins/mozilla_extensions.cc
index 9b336c3..1809a30 100644
--- a/webkit/glue/plugins/mozilla_extensions.cc
+++ b/webkit/glue/plugins/mozilla_extensions.cc
@@ -79,7 +79,7 @@ bool MozillaExtensionApi::FindProxyForUrl(const char* url,
NULL,
NULL) == net::OK) {
if (!proxy_info.is_direct()) {
- std::wstring winhttp_proxy = proxy_info.proxy_server();
+ std::string winhttp_proxy = proxy_info.proxy_server();
// Winhttp returns proxy in the the following format:
// - HTTP proxy: "111.111.111.111:11"
@@ -93,9 +93,9 @@ bool MozillaExtensionApi::FindProxyForUrl(const char* url,
// iv) Mixed. e.g. "PROXY 111.111.111.111;PROXY 112.112.112.112",
// "PROXY 111.111.111.111;SOCKS 112.112.112.112"....
StringToLowerASCII(winhttp_proxy);
- if (std::wstring::npos == winhttp_proxy.find(L'=')) {
+ if (std::string::npos == winhttp_proxy.find('=')) {
// Proxy is in the form: "111.111.111.111:11"
- winhttp_proxy.insert(0, L"http ");
+ winhttp_proxy.insert(0, "http ");
} else {
// Proxy is in the following form.
// -.SOCKS proxy: "socks=111.111.111.111:11"
@@ -103,10 +103,10 @@ bool MozillaExtensionApi::FindProxyForUrl(const char* url,
// in this case just replace the '=' with a space
std::replace_if(winhttp_proxy.begin(),
winhttp_proxy.end(),
- std::bind2nd(std::equal_to<wchar_t>(), L'='), L' ');
+ std::bind2nd(std::equal_to<char>(), '='), ' ');
}
- *proxy = WideToASCII(std::wstring(winhttp_proxy));
+ *proxy = winhttp_proxy;
result = true;
}
}