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