Index: extensions/common/url_pattern.cc |
diff --git a/extensions/common/url_pattern.cc b/extensions/common/url_pattern.cc |
index 477d3ddf080f65ea762dad056e27b11622d213cc..3b90f1029d3b03d0e612744656d7077221447047 100644 |
--- a/extensions/common/url_pattern.cc |
+++ b/extensions/common/url_pattern.cc |
@@ -461,6 +461,8 @@ bool URLPattern::OverlapsWith(const URLPattern& other) const { |
} |
bool URLPattern::Contains(const URLPattern& other) const { |
+ if (*this == other) |
+ return true; |
if (match_all_urls()) |
return true; |
return MatchesAllSchemes(other.GetExplicitSchemes()) |