Index: content/common/input/synthetic_web_input_event_builders.cc |
diff --git a/content/common/input/synthetic_web_input_event_builders.cc b/content/common/input/synthetic_web_input_event_builders.cc |
index e7e7d49176a13a81de4ade4130cdb6e7eb061e1d..6f8d8da376361512d85f56c48afce2b6aeac441b 100644 |
--- a/content/common/input/synthetic_web_input_event_builders.cc |
+++ b/content/common/input/synthetic_web_input_event_builders.cc |
@@ -170,7 +170,7 @@ WebGestureEvent SyntheticWebGestureEventBuilder::BuildFling( |
SyntheticWebTouchEvent::SyntheticWebTouchEvent() : WebTouchEvent() { |
uniqueTouchEventId = ui::GetNextTouchEventId(); |
- SetTimestamp(base::TimeTicks::Now() - base::TimeTicks()); |
+ SetTimestamp(base::TimeTicks::Now()); |
} |
void SyntheticWebTouchEvent::ResetPoints() { |
@@ -237,8 +237,8 @@ void SyntheticWebTouchEvent::CancelPoint(int index) { |
WebInputEvent::TouchCancel, timeStampSeconds, this); |
} |
-void SyntheticWebTouchEvent::SetTimestamp(base::TimeDelta timestamp) { |
- timeStampSeconds = timestamp.InSecondsF(); |
+void SyntheticWebTouchEvent::SetTimestamp(base::TimeTicks timestamp) { |
+ timeStampSeconds = ui::EventTimeStampToSeconds(timestamp); |
} |
} // namespace content |