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

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

Issue 2766213002: Update feature list (Closed)
Patch Set: Codereview: nit Created 3 years, 9 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 daa9d3a40b8bb14cf87cc61fa4d1bd42b6b2862e..a755813d9defca044bfd24b39b65144ea33ae532 100644
--- a/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp
+++ b/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp
@@ -19,9 +19,15 @@ WebFeaturePolicyFeature getWebFeaturePolicyFeature(const String& feature) {
return WebFeaturePolicyFeature::Payment;
if (feature == "vibrate")
return WebFeaturePolicyFeature::Vibrate;
- if (feature == "usermedia")
- return WebFeaturePolicyFeature::Usermedia;
if (RuntimeEnabledFeatures::featurePolicyExperimentalFeaturesEnabled()) {
+ if (feature == "camera")
+ return WebFeaturePolicyFeature::Camera;
+ if (feature == "eme")
+ return WebFeaturePolicyFeature::Eme;
+ if (feature == "microphone")
+ return WebFeaturePolicyFeature::Microphone;
+ if (feature == "speaker")
+ return WebFeaturePolicyFeature::Speaker;
if (feature == "cookie")
return WebFeaturePolicyFeature::DocumentCookie;
if (feature == "domain")
« no previous file with comments | « content/common/feature_policy/feature_policy.cc ('k') | third_party/WebKit/public/platform/WebFeaturePolicy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698