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

Unified Diff: components/content_settings/core/common/content_settings_pattern_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/content_settings/core/common/content_settings_pattern_parser.cc
diff --git a/components/content_settings/core/common/content_settings_pattern_parser.cc b/components/content_settings/core/common/content_settings_pattern_parser.cc
index ae7dcc3e1901a6fa46dd5d9e093ef9bbe010f1ef..cbdd260ead66c01bec9f345f7c8fb155040ac2ef 100644
--- a/components/content_settings/core/common/content_settings_pattern_parser.cc
+++ b/components/content_settings/core/common/content_settings_pattern_parser.cc
@@ -152,7 +152,7 @@ void PatternParser::Parse(const std::string& pattern_spec,
} else {
// Check if the port string represents a valid port.
for (size_t i = 0; i < port.size(); ++i) {
- if (!IsAsciiDigit(port[i])) {
+ if (!base::IsAsciiDigit(port[i])) {
builder->Invalid();
return;
}

Powered by Google App Engine
This is Rietveld 408576698