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

Unified Diff: content/public/common/content_features.cc

Issue 2778693004: Remove navigator.vibrate without user gesture. (Closed)
Patch Set: remove debugging code 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: content/public/common/content_features.cc
diff --git a/content/public/common/content_features.cc b/content/public/common/content_features.cc
index 4a1d40e83a760fc089824a470558320758b2f50e..5f0250a324822355086b4926d4e4d7e953ce97d5 100644
--- a/content/public/common/content_features.cc
+++ b/content/public/common/content_features.cc
@@ -235,6 +235,10 @@ const base::Feature kTokenBinding{"token-binding",
const base::Feature kTouchpadAndWheelScrollLatching{
"TouchpadAndWheelScrollLatching", base::FEATURE_DISABLED_BY_DEFAULT};
+// Controls whether vibrate requires user gesture.
+const base::Feature kVibrateRequiresUserGesture{
+ "VibrateRequiresUserGesture", base::FEATURE_ENABLED_BY_DEFAULT};
+
// Enables VR UI.
const base::Feature kVrShell{"VrShell", base::FEATURE_DISABLED_BY_DEFAULT};

Powered by Google App Engine
This is Rietveld 408576698