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

Unified Diff: components/translate/core/browser/translate_language_list.cc

Issue 1172183002: Move StartsWith[ASCII] to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util3
Patch Set: merger Created 5 years, 6 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 | « components/suggestions/suggestions_service.cc ('k') | components/translate/core/browser/translate_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/translate/core/browser/translate_language_list.cc
diff --git a/components/translate/core/browser/translate_language_list.cc b/components/translate/core/browser/translate_language_list.cc
index 959b5762c7aa3343e41ce6b18fe36395a504e6cd..1b1bfed0e9f0f1e6efef34da69ce60e0462bd077 100644
--- a/components/translate/core/browser/translate_language_list.cc
+++ b/components/translate/core/browser/translate_language_list.cc
@@ -264,9 +264,9 @@ void TranslateLanguageList::SetSupportedLanguages(
// })
// Where "sl(" is set in kLanguageListCallbackName, "tl" is
// kTargetLanguagesKey and "al" kAlphaLanguagesKey.
- if (!StartsWithASCII(language_list,
- TranslateLanguageList::kLanguageListCallbackName,
- false) ||
+ if (!base::StartsWithASCII(language_list,
+ TranslateLanguageList::kLanguageListCallbackName,
+ false) ||
!EndsWith(language_list, ")", false)) {
// We don't have a NOTREACHED here since this can happen in ui_tests, even
// though the the BrowserMain function won't call us with parameters.ui_task
« no previous file with comments | « components/suggestions/suggestions_service.cc ('k') | components/translate/core/browser/translate_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698