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

Unified Diff: chrome/browser/ui/views/find_bar_host.cc

Issue 2756893002: Add Keyboard Latency UMA Metrics. (Closed)
Patch Set: Fix test issue Created 3 years, 9 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: chrome/browser/ui/views/find_bar_host.cc
diff --git a/chrome/browser/ui/views/find_bar_host.cc b/chrome/browser/ui/views/find_bar_host.cc
index 5f51653a171ed0718a7f118a6ce0c0960462565b..1b34a5562bb612b46a8da33ea023bebd23903fcf 100644
--- a/chrome/browser/ui/views/find_bar_host.cc
+++ b/chrome/browser/ui/views/find_bar_host.cc
@@ -62,7 +62,9 @@ bool FindBarHost::MaybeForwardKeyEventToWebpage(
// input. Otherwise Up and Down arrow key strokes get eaten. "Nom Nom Nom".
contents->ClearFocusedElement();
NativeWebKeyboardEvent event(key_event);
- contents->GetRenderViewHost()->GetWidget()->ForwardKeyboardEvent(event);
+ contents->GetRenderViewHost()
+ ->GetWidget()
+ ->ForwardKeyboardEventWithLatencyInfo(event, *key_event.latency());
return true;
}

Powered by Google App Engine
This is Rietveld 408576698