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

Unified Diff: components/google/core/browser/google_util.cc

Issue 1172753003: Move LowerCaseEqualsASCII to base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util
Patch Set: Created 5 years, 6 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
Index: components/google/core/browser/google_util.cc
diff --git a/components/google/core/browser/google_util.cc b/components/google/core/browser/google_util.cc
index dfe5d0422132a081e35804e09108ca43b3a164f4..9b16899f77231a112c4c5462aa5b0a66d357d8d9 100644
--- a/components/google/core/browser/google_util.cc
+++ b/components/google/core/browser/google_util.cc
@@ -54,12 +54,12 @@ bool IsValidHostName(const std::string& host,
return false;
// Removes the tld and the preceding dot.
std::string host_minus_tld(host, 0, host.length() - tld_length - 1);
- if (LowerCaseEqualsASCII(host_minus_tld, domain_in_lower_case.c_str()))
+ if (base::LowerCaseEqualsASCII(host_minus_tld, domain_in_lower_case.c_str()))
return true;
if (subdomain_permission == google_util::ALLOW_SUBDOMAIN)
return EndsWith(host_minus_tld, "." + domain_in_lower_case, false);
- return LowerCaseEqualsASCII(host_minus_tld,
- ("www." + domain_in_lower_case).c_str());
+ return base::LowerCaseEqualsASCII(host_minus_tld,
+ ("www." + domain_in_lower_case).c_str());
}
// True if |url| is a valid URL with HTTP or HTTPS scheme. If |port_permission|

Powered by Google App Engine
This is Rietveld 408576698