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 c68c689c09be8fa8ac679127f4477d997c4d25cf..17d26108641f61c3b75ce52fea229fb7725ab636 100644 |
--- a/content/common/input/synthetic_web_input_event_builders.cc |
+++ b/content/common/input/synthetic_web_input_event_builders.cc |
@@ -169,7 +169,7 @@ WebGestureEvent SyntheticWebGestureEventBuilder::BuildFling( |
SyntheticWebTouchEvent::SyntheticWebTouchEvent() : WebTouchEvent() { |
uniqueTouchEventId = ui::GetNextTouchEventId(); |
- SetTimestamp(base::TimeTicks::Now() - base::TimeTicks()); |
+ SetTimestamp(base::TimeTicks::Now()); |
} |
void SyntheticWebTouchEvent::ResetPoints() { |
@@ -236,8 +236,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 |