Index: ui/aura/window_event_dispatcher.cc |
diff --git a/ui/aura/window_event_dispatcher.cc b/ui/aura/window_event_dispatcher.cc |
index 78ecee4d4604dcd3bc4fbde6f6c77c4b65b654e4..559c9524748a85e10b0cb0fc40780d28baeb5aef 100644 |
--- a/ui/aura/window_event_dispatcher.cc |
+++ b/ui/aura/window_event_dispatcher.cc |
@@ -495,6 +495,11 @@ ui::EventDispatchDetails WindowEventDispatcher::PreDispatchEvent( |
Window* target_window = static_cast<Window*>(target); |
CHECK(window()->Contains(target_window)); |
+ if (!(event->flags() & ui::EF_IS_SYNTHESIZED)) { |
+ fraction_of_time_without_user_input_recorder_.RecordEventAtTime( |
+ event->time_stamp()); |
+ } |
+ |
if (!dispatching_held_event_) { |
bool can_be_held = IsEventCandidateForHold(*event); |
if (!move_hold_count_ || !can_be_held) { |