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

Unified Diff: components/resource_provider/file_utils.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/resource_provider/file_utils.cc
diff --git a/components/resource_provider/file_utils.cc b/components/resource_provider/file_utils.cc
index 3cd3a0a2d7b42cbb9f1d4fbe82cceba6a959fcee..2e8d97a4e75d3508b793b06bbbde7b6d70131b2e 100644
--- a/components/resource_provider/file_utils.cc
+++ b/components/resource_provider/file_utils.cc
@@ -17,7 +17,8 @@ bool IsPathNameValid(const std::string& name) {
return false;
for (auto c : name) {
- if (!IsAsciiAlpha(c) && !IsAsciiDigit(c) && c != '_' && c != '.')
+ if (!base::IsAsciiAlpha(c) && !base::IsAsciiDigit(c) &&
+ c != '_' && c != '.')
return false;
}
return true;

Powered by Google App Engine
This is Rietveld 408576698