| Index: chrome/common/extensions/url_pattern.cc
|
| diff --git a/chrome/common/extensions/url_pattern.cc b/chrome/common/extensions/url_pattern.cc
|
| index 52489ae36582335c89aee8910152daf1aa17afa6..d854be49731263b71d08e9f4693e72d35d32303a 100644
|
| --- a/chrome/common/extensions/url_pattern.cc
|
| +++ b/chrome/common/extensions/url_pattern.cc
|
| @@ -138,11 +138,7 @@ URLPattern::ParseResult URLPattern::Parse(const std::string& pattern,
|
|
|
| // Special case pattern to match every valid URL.
|
| if (pattern == kAllUrlsPattern) {
|
| - match_all_urls_ = true;
|
| - match_subdomains_ = true;
|
| - scheme_ = "*";
|
| - host_.clear();
|
| - SetPath("/*");
|
| + SetMatchAllURLs(true);
|
| return PARSE_SUCCESS;
|
| }
|
|
|
| @@ -257,6 +253,13 @@ void URLPattern::SetHost(const std::string& host) {
|
| void URLPattern::SetMatchAllURLs(bool val) {
|
| spec_.clear();
|
| match_all_urls_ = val;
|
| +
|
| + if (val) {
|
| + match_subdomains_ = true;
|
| + scheme_ = "*";
|
| + host_.clear();
|
| + SetPath("/*");
|
| + }
|
| }
|
|
|
| void URLPattern::SetMatchSubdomains(bool val) {
|
|
|