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

Unified Diff: ui/events/win/events_win.cc

Issue 2007083002: Validate that ui::Event::time_stamp comes from the same clock as TimeTicks::Now (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@453559-use-timeticks-ui-event
Patch Set: Address feedback 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
« no previous file with comments | « ui/events/test/event_generator.cc ('k') | ui/events/x/events_x.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/win/events_win.cc
diff --git a/ui/events/win/events_win.cc b/ui/events/win/events_win.cc
index c30b108168daef94822e496a8331360c3ab90a6e..e061bed4f2e88630f351c79e868fb58565ee65d5 100644
--- a/ui/events/win/events_win.cc
+++ b/ui/events/win/events_win.cc
@@ -224,6 +224,7 @@ base::TimeTicks EventTimeFromNative(const base::NativeEvent& native_event) {
// |TimeTicks::Now()| for event timestamp instead of the native timestamp to
// ensure computed input latency and web exposed timestamp is consistent with
// other components.
+ // It is unnecessary to invoke |ValidateEventTimeClock| here because of above.
// [1] http://blogs.msdn.com/b/oldnewthing/archive/2014/01/22/10491576.aspx
return EventTimeForNow();
}
« no previous file with comments | « ui/events/test/event_generator.cc ('k') | ui/events/x/events_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698