diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-09 01:42:07 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-09 01:42:07 +0000 |
commit | cf57d5fb41b76e498f33b6899bb9a9fc59479b16 (patch) | |
tree | 71bf7c2ab078ef54b7933f4ece14ca439a429cca /chrome/common/extensions/extension_messages.cc | |
parent | c12d646d8d55b78cea237a5f7cbf64b7a5fa85c6 (diff) | |
download | chromium_src-cf57d5fb41b76e498f33b6899bb9a9fc59479b16.zip chromium_src-cf57d5fb41b76e498f33b6899bb9a9fc59479b16.tar.gz chromium_src-cf57d5fb41b76e498f33b6899bb9a9fc59479b16.tar.bz2 |
Move URLPattern::ParseOption into a field.
This will be needed to change the default of URLPattern to
USE_PORTS.
BUG=104104
Review URL: http://codereview.chromium.org/8885022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113730 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension_messages.cc')
-rw-r--r-- | chrome/common/extensions/extension_messages.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/common/extensions/extension_messages.cc b/chrome/common/extensions/extension_messages.cc index 362a10a..8324a6c 100644 --- a/chrome/common/extensions/extension_messages.cc +++ b/chrome/common/extensions/extension_messages.cc @@ -117,8 +117,9 @@ bool ParamTraits<URLPattern>::Read(const Message* m, void** iter, // match the invalid patterns. We get around this by setting the valid // schemes after parsing the pattern. Update these method calls once we can // ignore scheme validation with URLPattern parse options. crbug.com/90544 + p->SetParseOption(URLPattern::IGNORE_PORTS); p->SetValidSchemes(URLPattern::SCHEME_ALL); - URLPattern::ParseResult result = p->Parse(spec, URLPattern::IGNORE_PORTS); + URLPattern::ParseResult result = p->Parse(spec); p->SetValidSchemes(valid_schemes); return URLPattern::PARSE_SUCCESS == result; } |