Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Unified Diff: content/common/feature_policy/feature_policy.cc

Issue 2883213002: Add tests for FeaturePolicy integration with RenderFrameHost (Closed)
Patch Set: Add tests for FeaturePolicy integration with RenderFrameHost Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/feature_policy/feature_policy.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {}
« no previous file with comments | « content/common/feature_policy/feature_policy.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698