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

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

Issue 2756893002: Add Keyboard Latency UMA Metrics. (Closed)
Patch Set: Restrict to RawKeyDown and Char events on Android & Mac Created 3 years, 7 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 87372a11d34da70ed89d16024eded688d5496c98..81c33c9c0d77c014539ed87ff0b769638d0cc1b2 100644
--- a/chrome/browser/ui/views/find_bar_host.cc
+++ b/chrome/browser/ui/views/find_bar_host.cc
@@ -63,7 +63,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