diff options
author | brettw <brettw@chromium.org> | 2015-06-23 17:39:02 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-24 00:39:38 +0000 |
commit | b3413064f36bf166d7dffb463bc442059dab1dd7 (patch) | |
tree | 391826aaaccf59398a8d59437482ce9dd62da48f /components/content_settings | |
parent | 737f36b52ce9137b242b8259b8f440c61e6b60ba (diff) | |
download | chromium_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 'components/content_settings')
-rw-r--r-- | components/content_settings/core/common/content_settings_pattern_parser.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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 ae7dcc3..cbdd260 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; } |