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

Unified Diff: third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.h

Issue 2483703002: Replicate feature policy headers to remote frames (Closed)
Patch Set: Addressing review comments Created 4 years, 1 month 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
Index: third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.h
diff --git a/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.h b/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.h
index 40955b3878b39083a55d2b8a66191bb00e40dad8..b73ee051f93638fc155300776afc08d881ab8afe 100644
--- a/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.h
+++ b/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.h
@@ -128,8 +128,9 @@ class PLATFORM_EXPORT FeaturePolicy final {
RefPtr<SecurityOrigin>);
// Sets the declared policy from the Feature-Policy HTTP header. If the header
- // cannot be parsed, errors will be appended to the |messages| vector.
- void setHeaderPolicy(const String&, Vector<String>& messages);
+ // cannot be parsed, errors will be appended to the |messages| vector, if not
+ // null.
+ void setHeaderPolicy(const String&, Vector<String>* messages);
// Returns whether or not the given feature is enabled by this policy.
bool isFeatureEnabledForOrigin(const Feature&, const SecurityOrigin&) const;

Powered by Google App Engine
This is Rietveld 408576698