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

Unified Diff: components/translate/core/browser/translate_prefs.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
Index: components/translate/core/browser/translate_prefs.cc
diff --git a/components/translate/core/browser/translate_prefs.cc b/components/translate/core/browser/translate_prefs.cc
index d31dab4e018b3562111a555b056fc2df5343738d..768be0e8c691784dee5a583183a2bc48101e5d88 100644
--- a/components/translate/core/browser/translate_prefs.cc
+++ b/components/translate/core/browser/translate_prefs.cc
@@ -509,8 +509,8 @@ void TranslatePrefs::CreateBlockedLanguages(
const std::string& app_locale =
TranslateDownloadManager::GetInstance()->application_locale();
std::string ui_lang = TranslateDownloadManager::GetLanguageCode(app_locale);
- bool is_ui_english = ui_lang == "en" ||
- StartsWithASCII(ui_lang, "en-", false);
+ bool is_ui_english =
+ ui_lang == "en" || base::StartsWithASCII(ui_lang, "en-", false);
for (std::vector<std::string>::const_iterator it = accept_languages.begin();
it != accept_languages.end(); ++it) {

Powered by Google App Engine
This is Rietveld 408576698