| Index: chrome/common/extensions/url_pattern.cc
|
| diff --git a/chrome/common/extensions/url_pattern.cc b/chrome/common/extensions/url_pattern.cc
|
| index c0b04b7cf6eceb963b0693720c35d305849e8300..c77e61c8082c88fc900b32a5a8e9049738af7074 100644
|
| --- a/chrome/common/extensions/url_pattern.cc
|
| +++ b/chrome/common/extensions/url_pattern.cc
|
| @@ -378,10 +378,9 @@ bool URLPattern::MatchesHost(const GURL& test) const {
|
| }
|
|
|
| bool URLPattern::MatchesPath(const std::string& test) const {
|
| - if (!MatchPattern(test, path_escaped_))
|
| - return false;
|
| -
|
| - return true;
|
| + return MatchPattern(test, path_escaped_) ||
|
| + MatchPattern(test + '/', path_escaped_) ||
|
| + MatchPattern(test, path_escaped_ + '/');
|
| }
|
|
|
| bool URLPattern::MatchesPort(int port) const {
|
|
|