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

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

Issue 2801363002: Use hasReceivedUserGesture for collecting vibrate metrics on user gesture. (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 5c8c403dcdaf6ca11ff80d56ba709007b2c17c48..db8383d778c3d1564f6db2a2be374ef2869f8322 100644
--- a/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp
+++ b/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp
@@ -105,7 +105,7 @@ bool NavigatorVibration::vibrate(Navigator& navigator,
// static
void NavigatorVibration::collectHistogramMetrics(const LocalFrame& frame) {
NavigatorVibrationType type;
- bool userGesture = UserGestureIndicator::processingUserGesture();
+ bool userGesture = frame.hasReceivedUserGesture();
UseCounter::count(&frame, UseCounter::NavigatorVibrate);
if (!frame.isMainFrame()) {
UseCounter::count(&frame, UseCounter::NavigatorVibrateSubFrame);
« 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