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

Unified Diff: third_party/WebKit/public/platform/WebFeaturePolicy.h

Issue 2727803004: Replace string by enum in WebParsedFeaturePolicyDeclaration#feature (Closed)
Patch Set: Filter out unrecognized features in parseFeaturePolicy (earlier) instead of setHeaderPolicy Created 3 years, 9 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
Index: third_party/WebKit/public/platform/WebFeaturePolicy.h
diff --git a/third_party/WebKit/public/platform/WebFeaturePolicy.h b/third_party/WebKit/public/platform/WebFeaturePolicy.h
index 93865643a42f9114710189f88492db74ebcb13c6..19691866a7f021be9c1459fdeb6d2bf8ed6151ad 100644
--- a/third_party/WebKit/public/platform/WebFeaturePolicy.h
+++ b/third_party/WebKit/public/platform/WebFeaturePolicy.h
@@ -50,7 +50,7 @@ enum class WebFeaturePolicyFeature {
struct BLINK_PLATFORM_EXPORT WebParsedFeaturePolicyDeclaration {
WebParsedFeaturePolicyDeclaration() : matchesAllOrigins(false) {}
- WebString featureName;
+ WebFeaturePolicyFeature feature;
bool matchesAllOrigins;
WebVector<WebSecurityOrigin> origins;
};

Powered by Google App Engine
This is Rietveld 408576698