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

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

Issue 474483002: Revert 289312 "Move StringToUpperASCII and LowerCaseEqualsASCII ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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
Index: trunk/src/components/google/core/browser/google_util.cc
===================================================================
--- trunk/src/components/google/core/browser/google_util.cc (revision 289319)
+++ trunk/src/components/google/core/browser/google_util.cc (working copy)
@@ -54,12 +54,12 @@
return false;
// Removes the tld and the preceding dot.
std::string host_minus_tld(host, 0, host.length() - tld_length - 1);
- if (base::LowerCaseEqualsASCII(host_minus_tld, domain_in_lower_case.c_str()))
+ if (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 base::LowerCaseEqualsASCII(host_minus_tld,
- ("www." + domain_in_lower_case).c_str());
+ return 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|
« no previous file with comments | « trunk/src/components/dom_distiller/core/viewer.cc ('k') | trunk/src/components/metrics/serialization/serialization_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698