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

Unified Diff: third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp

Issue 2801153002: Ship navigator.vibrate behind featurePolicyExperimentalFeatures flag (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp
diff --git a/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp b/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp
index b4dd1b77011ea8b5bf442281fe2b681abb63fc76..4359602d0cd28d4bca825ad40b72a1a9d2ed47d0 100644
--- a/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp
+++ b/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp
@@ -81,6 +81,7 @@ bool NavigatorVibration::vibrate(Navigator& navigator,
// TODO(lunalu): When FeaturePolicy is ready, take out the check for the
// runtime flag. Please pay attention to the user gesture code below.
if (RuntimeEnabledFeatures::featurePolicyEnabled() &&
+ RuntimeEnabledFeatures::featurePolicyExperimentalFeaturesEnabled() &&
!frame->isFeatureEnabled(blink::WebFeaturePolicyFeature::Vibrate)) {
frame->domWindow()->printErrorMessage(
"Navigator.vibrate() is not enabled in feature policy for this "
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698