Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(807)

Unified Diff: net/proxy/proxy_bypass_rules.cc

Issue 1282363003: Convert remaining StringToLowerASCII to ToLowerASCII (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/transport_security_state.cc ('k') | net/server/http_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/proxy_bypass_rules.cc
diff --git a/net/proxy/proxy_bypass_rules.cc b/net/proxy/proxy_bypass_rules.cc
index f2f32611e9b61b8d2489118e5ae7768a5e06ea4a..be18edb7bb77763cf0141f025541011bb0faa185 100644
--- a/net/proxy/proxy_bypass_rules.cc
+++ b/net/proxy/proxy_bypass_rules.cc
@@ -24,10 +24,9 @@ class HostnamePatternRule : public ProxyBypassRules::Rule {
HostnamePatternRule(const std::string& optional_scheme,
const std::string& hostname_pattern,
int optional_port)
- : optional_scheme_(base::StringToLowerASCII(optional_scheme)),
- hostname_pattern_(base::StringToLowerASCII(hostname_pattern)),
- optional_port_(optional_port) {
- }
+ : optional_scheme_(base::ToLowerASCII(optional_scheme)),
+ hostname_pattern_(base::ToLowerASCII(hostname_pattern)),
+ optional_port_(optional_port) {}
bool Matches(const GURL& url) const override {
if (optional_port_ != -1 && url.EffectiveIntPort() != optional_port_)
@@ -38,8 +37,7 @@ class HostnamePatternRule : public ProxyBypassRules::Rule {
// Note it is necessary to lower-case the host, since GURL uses capital
// letters for percent-escaped characters.
- return base::MatchPattern(base::StringToLowerASCII(url.host()),
- hostname_pattern_);
+ return base::MatchPattern(url.host(), hostname_pattern_);
}
std::string ToString() const override {
« no previous file with comments | « net/http/transport_security_state.cc ('k') | net/server/http_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698