| Index: third_party/WebKit/Source/bindings/modules/v8/ConditionalFeaturesForModules.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/modules/v8/ConditionalFeaturesForModules.cpp b/third_party/WebKit/Source/bindings/modules/v8/ConditionalFeaturesForModules.cpp
|
| index 18a37fffd00bcefbb153b67bf38e5f51a2e1fc09..bf41931cb5e5ad94553874285c9ca65fa0e3b0df 100644
|
| --- a/third_party/WebKit/Source/bindings/modules/v8/ConditionalFeaturesForModules.cpp
|
| +++ b/third_party/WebKit/Source/bindings/modules/v8/ConditionalFeaturesForModules.cpp
|
| @@ -10,6 +10,7 @@
|
| #include "bindings/core/v8/V8SharedWorkerGlobalScope.h"
|
| #include "bindings/core/v8/V8Window.h"
|
| #include "bindings/core/v8/V8WorkerNavigator.h"
|
| +#include "bindings/modules/v8/V8BudgetService.h"
|
| #include "bindings/modules/v8/V8DedicatedWorkerGlobalScopePartial.h"
|
| #include "bindings/modules/v8/V8Gamepad.h"
|
| #include "bindings/modules/v8/V8GamepadButton.h"
|
| @@ -100,6 +101,12 @@ void InstallConditionalFeaturesForModules(
|
| v8::Local<v8::Object>(),
|
| prototype_object, interface_object);
|
| }
|
| + } else if (wrapper_type_info == &V8BudgetService::wrapperTypeInfo) {
|
| + if (OriginTrials::budgetQueryEnabled(execution_context)) {
|
| + V8BudgetService::installBudgetQuery(isolate, world,
|
| + v8::Local<v8::Object>(),
|
| + prototype_object, interface_object);
|
| + }
|
| } else if (wrapper_type_info == &V8Gamepad::wrapperTypeInfo) {
|
| if (OriginTrials::gamepadExtensionsEnabled(execution_context)) {
|
| V8Gamepad::installGamepadExtensions(isolate, world,
|
| @@ -202,6 +209,16 @@ void InstallPendingConditionalFeatureForModules(
|
| }
|
| return;
|
| }
|
| + if (feature == "BudgetQuery") {
|
| + if (context_data->GetExistingConstructorAndPrototypeForType(
|
| + &V8BudgetService::wrapperTypeInfo, &prototype_object,
|
| + &interface_object)) {
|
| + V8BudgetService::installBudgetQuery(isolate, world,
|
| + v8::Local<v8::Object>(),
|
| + prototype_object, interface_object);
|
| + }
|
| + return;
|
| + }
|
| }
|
|
|
| void RegisterInstallConditionalFeaturesForModules() {
|
|
|