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

Unified Diff: content/browser/devtools/protocol/input_handler.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: content/browser/devtools/protocol/input_handler.cc
diff --git a/content/browser/devtools/protocol/input_handler.cc b/content/browser/devtools/protocol/input_handler.cc
index feb6a1286de646ec3990a935e888c0fc23ef8460..fa433f4eb2b5e1c940811f6c9f0ab56c8b7fdb9f 100644
--- a/content/browser/devtools/protocol/input_handler.cc
+++ b/content/browser/devtools/protocol/input_handler.cc
@@ -323,7 +323,8 @@ void InputHandler::DispatchKeyEvent(
host_->GetRenderWidgetHost()->Focus();
input_queued_ = false;
pending_key_callbacks_.push_back(std::move(callback));
- host_->GetRenderWidgetHost()->ForwardKeyboardEvent(event);
+ host_->GetRenderWidgetHost()->ForwardKeyboardEventWithLatencyInfo(
+ event, ui::LatencyInfo());
if (!input_queued_) {
pending_key_callbacks_.back()->sendSuccess();
pending_key_callbacks_.pop_back();

Powered by Google App Engine
This is Rietveld 408576698