diff options
Diffstat (limited to 'extensions/common/permissions/socket_permission_entry.cc')
-rw-r--r-- | extensions/common/permissions/socket_permission_entry.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/common/permissions/socket_permission_entry.cc b/extensions/common/permissions/socket_permission_entry.cc index fdb6de8..a6fbb3b 100644 --- a/extensions/common/permissions/socket_permission_entry.cc +++ b/extensions/common/permissions/socket_permission_entry.cc @@ -31,8 +31,8 @@ const uint16_t kWildcardPortNumber = 0; const uint16_t kInvalidPort = 65535; bool StartsOrEndsWithWhitespace(const std::string& str) { - return !str.empty() && (base::IsUnicodeWhitespace(str[0]) || - base::IsUnicodeWhitespace(str[str.length() - 1])); + return !str.empty() && (base::IsUnicodeWhitespace(str.front()) || + base::IsUnicodeWhitespace(str.back())); } } // namespace |