| Index: third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp b/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp
|
| index 176f034533f668ed0633c0f38369f249f79312bd..70ad36d04f2b7f31aab2a1d0f8c6a07c7ef32b38 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp
|
| @@ -82,6 +82,16 @@ void installConditionalFeatures(const WrapperTypeInfo* type,
|
| interfaceObject);
|
| }
|
|
|
| +void installPendingConditionalFeaturesOnWindow(const ScriptState* scriptState) {
|
| + DCHECK(scriptState);
|
| + DCHECK(scriptState->context() == scriptState->isolate()->GetCurrentContext());
|
| + DCHECK(scriptState->perContextData());
|
| + DCHECK(scriptState->world().isMainWorld());
|
| + (*s_installConditionalFeaturesFunction)(&V8Window::wrapperTypeInfo,
|
| + scriptState, v8::Local<v8::Object>(),
|
| + v8::Local<v8::Function>());
|
| +}
|
| +
|
| bool isFeatureEnabledInFrame(const FeaturePolicy::Feature& feature,
|
| const LocalFrame* frame) {
|
| // If there is no frame, or if feature policy is disabled, use defaults.
|
|
|