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

Unified Diff: components/translate/core/language_detection/language_detection_util.cc

Issue 1200053004: Move more string_util functions to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/search_engines/template_url_parser.cc ('k') | components/url_fixer/url_fixer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/translate/core/language_detection/language_detection_util.cc
diff --git a/components/translate/core/language_detection/language_detection_util.cc b/components/translate/core/language_detection/language_detection_util.cc
index 9556bb9351a9543ea0467b7dd2a539877957a922..144071422ce254bed984b521a896dd2123a0ebc8 100644
--- a/components/translate/core/language_detection/language_detection_util.cc
+++ b/components/translate/core/language_detection/language_detection_util.cc
@@ -324,7 +324,7 @@ bool IsValidLanguageCode(const std::string& code) {
for (std::string::const_iterator it = main_code.begin();
it != main_code.end(); ++it) {
- if (!IsAsciiAlpha(*it))
+ if (!base::IsAsciiAlpha(*it))
return false;
}
@@ -338,7 +338,7 @@ bool IsValidLanguageCode(const std::string& code) {
for (std::string::const_iterator it = sub_code.begin();
it != sub_code.end(); ++it) {
- if (!IsAsciiAlpha(*it))
+ if (!base::IsAsciiAlpha(*it))
return false;
}
« no previous file with comments | « components/search_engines/template_url_parser.cc ('k') | components/url_fixer/url_fixer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698