Index: ui/base/l10n/l10n_util.cc |
diff --git a/ui/base/l10n/l10n_util.cc b/ui/base/l10n/l10n_util.cc |
index 010dbde790b489a65d82e7bfd62e39299905b3db..de0e62010a4dfb5b995707a9d5d4afbd305c8389 100644 |
--- a/ui/base/l10n/l10n_util.cc |
+++ b/ui/base/l10n/l10n_util.cc |
@@ -201,9 +201,8 @@ |
}; |
// Skip all the es_Foo other than es_419 for now. |
- if (base::StartsWith(locale_name, "es_", |
- base::CompareCase::INSENSITIVE_ASCII)) |
- return !base::EndsWith(locale_name, "419", base::CompareCase::SENSITIVE); |
+ if (base::StartsWithASCII(locale_name, "es_", false)) |
+ return !base::EndsWith(locale_name, "419", true); |
for (size_t i = 0; i < arraysize(kDuplicateNames); ++i) { |
if (base::EqualsCaseInsensitiveASCII(kDuplicateNames[i], locale_name)) |