summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/url_pattern.cc
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-16 01:22:54 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-16 01:22:54 +0000
commiteb319f3373c207fc3b145954527ee098f6c8568e (patch)
treeec1658a6908ec634823d00e968e82ee88b4f9fac /chrome/common/extensions/url_pattern.cc
parent3f511d5c9c583bda2629c2fbc5f8fe5a189a3cc5 (diff)
downloadchromium_src-eb319f3373c207fc3b145954527ee098f6c8568e.zip
chromium_src-eb319f3373c207fc3b145954527ee098f6c8568e.tar.gz
chromium_src-eb319f3373c207fc3b145954527ee098f6c8568e.tar.bz2
Convert the easy cases of URLPattern::ERROR_ON_PORT to USE_PORT
BUG=104104 Review URL: http://codereview.chromium.org/8893014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114743 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/url_pattern.cc')
-rw-r--r--chrome/common/extensions/url_pattern.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/common/extensions/url_pattern.cc b/chrome/common/extensions/url_pattern.cc
index 907678c..ba8843a 100644
--- a/chrome/common/extensions/url_pattern.cc
+++ b/chrome/common/extensions/url_pattern.cc
@@ -99,7 +99,7 @@ bool IsValidPortForScheme(const std::string scheme, const std::string& port) {
} // namespace
URLPattern::URLPattern()
- : parse_option_(ERROR_ON_PORTS),
+ : parse_option_(USE_PORTS),
valid_schemes_(SCHEME_NONE),
match_all_urls_(false),
match_subdomains_(false),
@@ -115,7 +115,7 @@ URLPattern::URLPattern(URLPattern::ParseOption parse_option, int valid_schemes)
URLPattern::URLPattern(int valid_schemes, const std::string& pattern)
// Strict error checking is used, because this constructor is only
// appropriate when we know |pattern| is valid.
- : parse_option_(ERROR_ON_PORTS),
+ : parse_option_(USE_PORTS),
valid_schemes_(valid_schemes),
match_all_urls_(false),
match_subdomains_(false),