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

Unified Diff: ui/events/gesture_detection/gesture_provider.cc

Issue 501553004: Move gesture/touch UMA logs into gesture provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change the comments Created 6 years, 4 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: ui/events/gesture_detection/gesture_provider.cc
diff --git a/ui/events/gesture_detection/gesture_provider.cc b/ui/events/gesture_detection/gesture_provider.cc
index c76460e53c63da200bda0dcf3cec80946e79fd0a..23d092a2082d5770ab82e24433c75aa78b487afb 100644
--- a/ui/events/gesture_detection/gesture_provider.cc
+++ b/ui/events/gesture_detection/gesture_provider.cc
@@ -265,6 +265,7 @@ class GestureProvider::GestureListenerImpl
};
client_->OnGestureEvent(gesture);
+ GestureTouchUMAHistogram::RecordGestureEvent(gesture);
}
// ScaleGestureDetector::ScaleGestureListener implementation.
@@ -656,6 +657,7 @@ bool GestureProvider::OnTouchEvent(const MotionEvent& event) {
OnTouchEventHandlingBegin(event);
gesture_listener_->OnTouchEvent(event);
OnTouchEventHandlingEnd(event);
+ uma_histogram_.RecordTouchEvent(event);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698