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

Unified Diff: third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp

Issue 2815003005: Integrate WebUSB with Feature Policy (Closed)
Patch Set: Ready for review Created 3 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/platform/feature_policy/FeaturePolicy.cpp
diff --git a/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp b/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp
index f89c965b35075a0057e00fe885d3e977f2c26074..0c8e2a45b7dfcacb25d82172279d177c358eab80 100644
--- a/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp
+++ b/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp
@@ -134,6 +134,7 @@ const FeatureNameMap& GetDefaultFeatureNameMap() {
default_feature_name_map.Set("fullscreen",
WebFeaturePolicyFeature::kFullscreen);
default_feature_name_map.Set("payment", WebFeaturePolicyFeature::kPayment);
+ default_feature_name_map.Set("usb", WebFeaturePolicyFeature::kUsb);
iclelland.google 2017/05/02 14:42:52 Can you make this line conditional on RuntimeEnabl
Reilly Grant (use Gerrit) 2017/05/02 19:29:05 WebUSB is an Origin Trial so RuntimeEnabledFeature
iclelland 2017/05/04 15:24:08 Right, of course. (And other than plumbing the exe
if (RuntimeEnabledFeatures::featurePolicyExperimentalFeaturesEnabled()) {
default_feature_name_map.Set("vibrate",
WebFeaturePolicyFeature::kVibrate);

Powered by Google App Engine
This is Rietveld 408576698