Index: chrome/browser/supervised_user/supervised_user_url_filter.cc |
diff --git a/chrome/browser/supervised_user/supervised_user_url_filter.cc b/chrome/browser/supervised_user/supervised_user_url_filter.cc |
index b1dad56441cf29e80342b49848803062988140ca..667fc25069c1988b65753a7307e2c3524150987e 100644 |
--- a/chrome/browser/supervised_user/supervised_user_url_filter.cc |
+++ b/chrome/browser/supervised_user/supervised_user_url_filter.cc |
@@ -239,7 +239,7 @@ bool SupervisedUserURLFilter::HostMatchesPattern(const std::string& host, |
const std::string& pattern) { |
std::string trimmed_pattern = pattern; |
std::string trimmed_host = host; |
- if (base::EndsWith(pattern, ".*", true)) { |
+ if (base::EndsWith(pattern, ".*", base::CompareCase::SENSITIVE)) { |
size_t registry_length = GetRegistryLength( |
trimmed_host, EXCLUDE_UNKNOWN_REGISTRIES, EXCLUDE_PRIVATE_REGISTRIES); |
// A host without a known registry part does not match. |
@@ -258,7 +258,8 @@ bool SupervisedUserURLFilter::HostMatchesPattern(const std::string& host, |
// pattern. |
if (trimmed_pattern.empty() || |
trimmed_pattern.find('*') != std::string::npos || |
- !base::EndsWith(trimmed_host, trimmed_pattern, true)) { |
+ !base::EndsWith(trimmed_host, trimmed_pattern, |
+ base::CompareCase::SENSITIVE)) { |
return false; |
} |