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

Unified Diff: third_party/WebKit/Source/modules/webusb/NavigatorUSB.idl

Issue 1866403004: WIP Enable WebUSB through the Experimental Framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix usage of [OriginTrialEnabled] Created 4 years, 8 months 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
Index: third_party/WebKit/Source/modules/webusb/NavigatorUSB.idl
diff --git a/third_party/WebKit/Source/modules/webusb/NavigatorUSB.idl b/third_party/WebKit/Source/modules/webusb/NavigatorUSB.idl
index d916a0eab9e1efec91e0a6365fddb5099b9b0931..43c15da072ab2e8455fd2081198edd5c8b668503 100644
--- a/third_party/WebKit/Source/modules/webusb/NavigatorUSB.idl
+++ b/third_party/WebKit/Source/modules/webusb/NavigatorUSB.idl
@@ -6,7 +6,10 @@
[
GarbageCollected,
- RuntimeEnabled=WebUSB,
+ //OriginTrialEnabled=WebUSB,
] partial interface Navigator {
- readonly attribute USB usb;
+ // [OriginTrialEnabled] doesn't support adding bindings to partial
+ // interfaces yet, so we add it to the attribute instead.
+ // https://crbug.com/585656
+ [OriginTrialEnabled=WebUSB] readonly attribute USB usb;
};

Powered by Google App Engine
This is Rietveld 408576698