summaryrefslogtreecommitdiffstats
path: root/extensions/common/csp_validator.cc
diff options
context:
space:
mode:
authorbrettw <brettw@chromium.org>2015-06-23 17:39:02 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-24 00:39:38 +0000
commitb3413064f36bf166d7dffb463bc442059dab1dd7 (patch)
tree391826aaaccf59398a8d59437482ce9dd62da48f /extensions/common/csp_validator.cc
parent737f36b52ce9137b242b8259b8f440c61e6b60ba (diff)
downloadchromium_src-b3413064f36bf166d7dffb463bc442059dab1dd7.zip
chromium_src-b3413064f36bf166d7dffb463bc442059dab1dd7.tar.gz
chromium_src-b3413064f36bf166d7dffb463bc442059dab1dd7.tar.bz2
Move more string_util functions to base namespace.
Rename IsWhitespace to IsUnicodeWhitespace (to contrast it to the already-existing IsAsciiWhitespace). De-inline HexDigitToInt. This is only used in a few places and I don't think it's necessary to inline. Remove some redundant base:: qualifications in base. TBR=sky Review URL: https://codereview.chromium.org/1200053004 Cr-Commit-Position: refs/heads/master@{#335827}
Diffstat (limited to 'extensions/common/csp_validator.cc')
-rw-r--r--extensions/common/csp_validator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/common/csp_validator.cc b/extensions/common/csp_validator.cc
index ced436e..06ea4ef 100644
--- a/extensions/common/csp_validator.cc
+++ b/extensions/common/csp_validator.cc
@@ -83,7 +83,7 @@ bool isNonWildcardTLD(const std::string& url,
// ":123456" or ":****" as valid, but that does not matter because the
// relaxing CSP directive will just be ignored by Blink.
for (size_t i = start_of_port + 1; i < end_of_host; ++i) {
- is_valid_port = IsAsciiDigit(url[i]) || url[i] == '*';
+ is_valid_port = base::IsAsciiDigit(url[i]) || url[i] == '*';
if (!is_valid_port)
break;
}