Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2608)

Unified Diff: ui/base/l10n/l10n_util.cc

Issue 1233043003: Remove some legacy versions of StartsWith and EndsWith. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/ninja_target_writer.cc ('k') | ui/gfx/font_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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))
« no previous file with comments | « tools/gn/ninja_target_writer.cc ('k') | ui/gfx/font_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698