diff options
Diffstat (limited to 'net/base/net_util.cc')
-rw-r--r-- | net/base/net_util.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/base/net_util.cc b/net/base/net_util.cc index 39a8591..e045441 100644 --- a/net/base/net_util.cc +++ b/net/base/net_util.cc @@ -155,7 +155,7 @@ std::string NormalizeHostname(const std::string& host) { } bool IsNormalizedLocalhostTLD(const std::string& host) { - return base::EndsWith(host, ".localhost", true); + return base::EndsWith(host, ".localhost", base::CompareCase::SENSITIVE); } // |host| should be normalized. @@ -801,7 +801,7 @@ bool HasGoogleHost(const GURL& url) { }; const std::string& host = url.host(); for (const char* suffix : kGoogleHostSuffixes) { - if (base::EndsWith(host, suffix, false)) + if (base::EndsWith(host, suffix, base::CompareCase::INSENSITIVE_ASCII)) return true; } return false; |