Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Unified Diff: third_party/WebKit/Source/bindings/modules/v8/ConditionalFeaturesForModules.cpp

Issue 2485773002: Enable ImageCapture origin trial experiment (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/imagecapture/ImageCapture.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5213e83fb6f3357c5bcce680b3992a7247b2040c..f619466dbc66701cb5ef91c161c6e370f54a8f09 100644
--- a/third_party/WebKit/Source/bindings/modules/v8/ConditionalFeaturesForModules.cpp
+++ b/third_party/WebKit/Source/bindings/modules/v8/ConditionalFeaturesForModules.cpp
@@ -13,6 +13,7 @@
#include "bindings/modules/v8/V8DedicatedWorkerGlobalScopePartial.h"
#include "bindings/modules/v8/V8Gamepad.h"
#include "bindings/modules/v8/V8GamepadButton.h"
+#include "bindings/modules/v8/V8ImageCapture.h"
Reilly Grant (use Gerrit) 2016/11/08 16:39:50 I don't think this include is required.
mcasas 2016/11/08 16:43:48 Done.
#include "bindings/modules/v8/V8InstallEvent.h"
#include "bindings/modules/v8/V8NavigatorPartial.h"
#include "bindings/modules/v8/V8ServiceWorkerGlobalScope.h"
@@ -61,6 +62,10 @@ void installConditionalFeaturesForModules(
interfaceObject);
}
} else if (wrapperTypeInfo == &V8Window::wrapperTypeInfo) {
+ if (OriginTrials::imageCaptureEnabled(executionContext)) {
+ V8WindowPartial::installImageCapture(isolate, world, global,
+ prototypeObject, interfaceObject);
+ }
if (OriginTrials::webUSBEnabled(executionContext)) {
V8WindowPartial::installWebUSB(isolate, world, global, prototypeObject,
interfaceObject);
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/imagecapture/ImageCapture.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698