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

Unified Diff: ui/events/ozone/evdev/touch_noise/touch_noise_finder.cc

Issue 1975533002: Change ui::Event::time_stamp from TimeDelta to TimeTicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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/ozone/evdev/touch_noise/touch_noise_finder.cc
diff --git a/ui/events/ozone/evdev/touch_noise/touch_noise_finder.cc b/ui/events/ozone/evdev/touch_noise/touch_noise_finder.cc
index 540dc1013ee2d721e5be906e92ed4b1895a75bc0..553b1f62cfbb7c43216d79962ec9ce2fbbfc6feb 100644
--- a/ui/events/ozone/evdev/touch_noise/touch_noise_finder.cc
+++ b/ui/events/ozone/evdev/touch_noise/touch_noise_finder.cc
@@ -26,7 +26,7 @@ TouchNoiseFinder::~TouchNoiseFinder() {
void TouchNoiseFinder::HandleTouches(
const std::vector<InProgressTouchEvdev>& touches,
- base::TimeDelta time) {
+ base::TimeTicks time) {
for (const InProgressTouchEvdev& touch : touches) {
if (!touch.was_touching)
slots_with_noise_.set(touch.slot, false);
@@ -44,7 +44,7 @@ bool TouchNoiseFinder::SlotHasNoise(size_t slot) const {
return slots_with_noise_.test(slot);
}
-void TouchNoiseFinder::RecordUMA(bool had_noise, base::TimeDelta time) {
+void TouchNoiseFinder::RecordUMA(bool had_noise, base::TimeTicks time) {
if (slots_with_noise_.any()) {
if (!had_noise) {
UMA_HISTOGRAM_LONG_TIMES(

Powered by Google App Engine
This is Rietveld 408576698