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

Unified Diff: extensions/common/permissions/socket_permission_entry.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 | « extensions/common/message_bundle.cc ('k') | google_apis/gaia/oauth_request_signer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/permissions/socket_permission_entry.cc
diff --git a/extensions/common/permissions/socket_permission_entry.cc b/extensions/common/permissions/socket_permission_entry.cc
index 0974ff8552382daf17a20336dc052b5ff5310358..6adf3077f874db00d3be0dcce0146d37154cefb8 100644
--- a/extensions/common/permissions/socket_permission_entry.cc
+++ b/extensions/common/permissions/socket_permission_entry.cc
@@ -28,8 +28,8 @@ const uint16 kWildcardPortNumber = 0;
const uint16 kInvalidPort = 65535;
bool StartsOrEndsWithWhitespace(const std::string& str) {
- return !str.empty() &&
- (IsWhitespace(str[0]) || IsWhitespace(str[str.length() - 1]));
+ return !str.empty() && (base::IsUnicodeWhitespace(str[0]) ||
+ base::IsUnicodeWhitespace(str[str.length() - 1]));
}
} // namespace
« no previous file with comments | « extensions/common/message_bundle.cc ('k') | google_apis/gaia/oauth_request_signer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698