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 53265023ffd2233b506aa10a60752f07871bc53c..1eada344379f84a53b771eb2efe6c097a6f63d84 100644 |
--- a/components/google/core/browser/google_util.cc |
+++ b/components/google/core/browser/google_util.cc |
@@ -57,7 +57,8 @@ bool IsValidHostName(const std::string& host, |
if (base::LowerCaseEqualsASCII(host_minus_tld, domain_in_lower_case.c_str())) |
return true; |
if (subdomain_permission == google_util::ALLOW_SUBDOMAIN) |
- return base::EndsWith(host_minus_tld, "." + domain_in_lower_case, false); |
+ return base::EndsWith(host_minus_tld, "." + domain_in_lower_case, |
+ base::CompareCase::INSENSITIVE_ASCII); |
return base::LowerCaseEqualsASCII(host_minus_tld, |
("www." + domain_in_lower_case).c_str()); |
} |