Chromium Code Reviews| Index: content/common/feature_policy/feature_policy.cc |
| diff --git a/content/common/feature_policy/feature_policy.cc b/content/common/feature_policy/feature_policy.cc |
| index 76ad76989dee2d051b19a7b32c2d50853f755d3b..29edc9c8240a6d8f049bbdcc3dc51eb717f7f88a 100644 |
| --- a/content/common/feature_policy/feature_policy.cc |
| +++ b/content/common/feature_policy/feature_policy.cc |
| @@ -146,6 +146,10 @@ void FeaturePolicy::SetHeaderPolicy( |
| } |
| } |
| +bool FeaturePolicy::HasSetHeaderPolicy() const { |
| + return !whitelists_.empty(); |
|
alexmos
2017/05/17 22:48:49
Can you set an empty policy in the header, one tha
raymes
2017/05/21 22:11:20
Ahh good catch. I've removed this for now, as righ
alexmos
2017/05/22 23:05:47
I'm fine leaving it out until there's a more subst
|
| +} |
| + |
| FeaturePolicy::FeaturePolicy(url::Origin origin, |
| const FeatureList& feature_list) |
| : origin_(origin), feature_list_(feature_list) {} |