| Index: third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.cpp b/third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.cpp
|
| index 7ad668732cf91e76f9c44d75ad236215b3421eb0..3425fe336ab0f0676d3dd518b427e3cc9a2da486 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.cpp
|
| @@ -81,19 +81,6 @@ void installConditionalFeaturesOnWindow(const ScriptState* scriptState) {
|
| v8::Local<v8::Function>());
|
| }
|
|
|
| -bool isFeatureEnabledInFrame(WebFeaturePolicyFeature feature,
|
| - const Frame* frame) {
|
| - DCHECK(frame);
|
| - WebFeaturePolicy* featurePolicy =
|
| - frame->securityContext()->getFeaturePolicy();
|
| - // The policy should always be initialized before checking it to ensure we
|
| - // properly inherit the parent policy.
|
| - DCHECK(featurePolicy);
|
| -
|
| - // Otherwise, check policy.
|
| - return featurePolicy->IsFeatureEnabled(feature);
|
| -}
|
| -
|
| void registerInstallConditionalFeaturesForCore() {
|
| s_oldInstallConditionalFeaturesFunction =
|
| setInstallConditionalFeaturesFunction(&installConditionalFeaturesCore);
|
|
|