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 47b22e6b7951c1183d00a0ce4e824b48c75495cc..10022d9b925bb520f4023e09b397218c3fc923eb 100644 |
--- a/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.h |
+++ b/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.h |
@@ -156,6 +156,11 @@ class PLATFORM_EXPORT FeaturePolicy final { |
String toString(); |
+ // Returns the corresponding WebFeaturePolicyFeature enum given a feature |
+ // string. |
+ static WebFeaturePolicyFeature getWebFeaturePolicyFeature( |
+ const String& feature); |
+ |
private: |
friend class FeaturePolicyTest; |
friend class FeaturePolicyInFrameTest; |