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

Unified Diff: components/search_engines/template_url_parser.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
Index: components/search_engines/template_url_parser.cc
diff --git a/components/search_engines/template_url_parser.cc b/components/search_engines/template_url_parser.cc
index 394512c4854f907590a52b851104f0fcf522e8b3..51644b16d2b9e64578998a5fa5cc2528a3104caf 100644
--- a/components/search_engines/template_url_parser.cc
+++ b/components/search_engines/template_url_parser.cc
@@ -63,13 +63,13 @@ bool IsValidEncodingString(const std::string& input_encoding) {
if (input_encoding.empty())
return false;
- if (!IsAsciiAlpha(input_encoding[0]))
+ if (!base::IsAsciiAlpha(input_encoding[0]))
return false;
for (size_t i = 1, max = input_encoding.size(); i < max; ++i) {
char c = input_encoding[i];
- if (!IsAsciiAlpha(c) && !IsAsciiDigit(c) && c != '.' && c != '_' &&
- c != '-') {
+ if (!base::IsAsciiAlpha(c) && !base::IsAsciiDigit(c) &&
+ c != '.' && c != '_' && c != '-') {
return false;
}
}
« no previous file with comments | « components/resource_provider/file_utils.cc ('k') | components/translate/core/language_detection/language_detection_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698