| Index: extensions/common/url_pattern_set.cc
|
| diff --git a/extensions/common/url_pattern_set.cc b/extensions/common/url_pattern_set.cc
|
| index 7a19c71112cdf7a7e04e42a6ad03619d02a6a9ab..0afe111ab14f4e39fead8bee58f29194488cce9a 100644
|
| --- a/extensions/common/url_pattern_set.cc
|
| +++ b/extensions/common/url_pattern_set.cc
|
| @@ -139,6 +139,15 @@ bool URLPatternSet::Contains(const URLPatternSet& other) const {
|
| return true;
|
| }
|
|
|
| +bool URLPatternSet::ContainsPattern(const URLPattern& pattern) const {
|
| + for (URLPatternSet::const_iterator it = begin();
|
| + it != end(); ++it) {
|
| + if (it->Contains(pattern))
|
| + return true;
|
| + }
|
| + return false;
|
| +}
|
| +
|
| bool URLPatternSet::MatchesURL(const GURL& url) const {
|
| for (URLPatternSet::const_iterator pattern = patterns_.begin();
|
| pattern != patterns_.end(); ++pattern) {
|
| @@ -221,13 +230,4 @@ bool URLPatternSet::Populate(const base::ListValue& value,
|
| return Populate(patterns, valid_schemes, allow_file_access, error);
|
| }
|
|
|
| -bool URLPatternSet::ContainsPattern(const URLPattern& pattern) const {
|
| - for (URLPatternSet::const_iterator it = begin();
|
| - it != end(); ++it) {
|
| - if (it->Contains(pattern))
|
| - return true;
|
| - }
|
| - return false;
|
| -}
|
| -
|
| } // namespace extensions
|
|
|