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

Unified Diff: third_party/WebKit/Source/core/frame/Deprecation.cpp

Issue 2778693004: Remove navigator.vibrate without user gesture. (Closed)
Patch Set: Use the Deprecation class for warning 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/core/frame/Deprecation.cpp
diff --git a/third_party/WebKit/Source/core/frame/Deprecation.cpp b/third_party/WebKit/Source/core/frame/Deprecation.cpp
index 279c17385aed54dcefc70d3d5de0305071063760..74ac21fd30b4c3f1d65c509e0b03cdffb9dc2917 100644
--- a/third_party/WebKit/Source/core/frame/Deprecation.cpp
+++ b/third_party/WebKit/Source/core/frame/Deprecation.cpp
@@ -429,6 +429,12 @@ String Deprecation::DeprecationMessage(UseCounter::Feature feature) {
return willBeRemoved("indexedDB.webkitGetDatabaseNames()", M60,
"5725741740195840");
+ case UseCounter::kVibrateWithoutUserGesture:
+ return willBeRemoved(
+ "A call to navigator.vibrate without user tap on the frame or any "
+ "embedded frame",
+ M60, "5644273861001216");
+
case UseCounter::kChildSrcAllowedWorkerThatScriptSrcBlocked:
return replacedWillBeRemoved("The 'child-src' directive",
"the 'script-src' directive for Workers",

Powered by Google App Engine
This is Rietveld 408576698