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

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

Issue 1242023005: Remove legacy StartsWithASCII function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: y 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 | « ui/base/ime/chromeos/extension_ime_util.cc ('k') | ui/base/x/x11_util.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 010dbde790b489a65d82e7bfd62e39299905b3db..35b81aa56800aead1b0c83abf82ed07f5bab04dd 100644
--- a/ui/base/l10n/l10n_util.cc
+++ b/ui/base/l10n/l10n_util.cc
@@ -540,7 +540,7 @@ base::string16 GetDisplayNameForLocale(const std::string& locale,
// zh-Hant because the current Android Java API doesn't support scripts.
// TODO(wangxianzhu): remove the special handling of zh-Hans and zh-Hant once
// Android Java API supports scripts.
- if (!base::StartsWithASCII(locale_code, "zh-Han", true)) {
+ if (!base::StartsWith(locale_code, "zh-Han", base::CompareCase::SENSITIVE)) {
display_name = GetDisplayNameForLocale(locale_code, display_locale);
} else
#endif
« no previous file with comments | « ui/base/ime/chromeos/extension_ime_util.cc ('k') | ui/base/x/x11_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698