| Index: third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp
|
| diff --git a/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp b/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp
|
| index f89c965b35075a0057e00fe885d3e977f2c26074..74d15ee8ecb9da9d538015e35676f3326e495a64 100644
|
| --- a/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp
|
| +++ b/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp
|
| @@ -128,6 +128,22 @@ WebParsedFeaturePolicy GetContainerPolicyFromAllowedFeatures(
|
| return whitelists;
|
| }
|
|
|
| +bool IsSupportedInFeaturePolicy(WebFeaturePolicyFeature feature) {
|
| + switch (feature) {
|
| + // TODO(lunalu): Re-enabled fullscreen in feature policy once tests have
|
| + // been updated.
|
| + // crbug.com/666761
|
| + case WebFeaturePolicyFeature::kFullscreen:
|
| + return false;
|
| + case WebFeaturePolicyFeature::kPayment:
|
| + return true;
|
| + case WebFeaturePolicyFeature::kVibrate:
|
| + return RuntimeEnabledFeatures::featurePolicyExperimentalFeaturesEnabled();
|
| + default:
|
| + return false;
|
| + }
|
| +}
|
| +
|
| const FeatureNameMap& GetDefaultFeatureNameMap() {
|
| DEFINE_STATIC_LOCAL(FeatureNameMap, default_feature_name_map, ());
|
| if (default_feature_name_map.IsEmpty()) {
|
|
|