| Index: components/content_settings/core/common/content_settings_pattern.cc
|
| diff --git a/components/content_settings/core/common/content_settings_pattern.cc b/components/content_settings/core/common/content_settings_pattern.cc
|
| index 348892e5d1523be701aa21a356b6aab3c60cb8c3..c86044ef639783a0e769bf69be8f0cffe5ca2c63 100644
|
| --- a/components/content_settings/core/common/content_settings_pattern.cc
|
| +++ b/components/content_settings/core/common/content_settings_pattern.cc
|
| @@ -614,6 +614,11 @@ ContentSettingsPattern::SchemeType ContentSettingsPattern::GetScheme() const {
|
| return SCHEME_OTHER;
|
| }
|
|
|
| +bool ContentSettingsPattern::HasPath() const {
|
| + DCHECK_EQ(GetScheme(), SCHEME_FILE);
|
| + return !parts_.is_path_wildcard && !parts_.path.empty();
|
| +}
|
| +
|
| ContentSettingsPattern::Relation ContentSettingsPattern::Compare(
|
| const ContentSettingsPattern& other) const {
|
| // Two invalid patterns are identical in the way they behave. They don't match
|
|
|