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

Unified Diff: content/public/test/browser_test_utils.cc

Issue 2756893002: Add Keyboard Latency UMA Metrics. (Closed)
Patch Set: mfomitchev responses, rebase Created 3 years, 8 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/public/test/browser_test_utils.cc
diff --git a/content/public/test/browser_test_utils.cc b/content/public/test/browser_test_utils.cc
index 0864b5a2ae4d89bf797a839f21ec40f8e937e24a..16aee30526666ac529fb60debd8b1b609fefa83c 100644
--- a/content/public/test/browser_test_utils.cc
+++ b/content/public/test/browser_test_utils.cc
@@ -246,7 +246,7 @@ void InjectRawKeyEvent(WebContents* web_contents,
RenderWidgetHostImpl* main_frame_rwh =
web_contents_impl->GetMainFrame()->GetRenderWidgetHost();
web_contents_impl->GetFocusedRenderWidgetHost(main_frame_rwh)
- ->ForwardKeyboardEvent(event);
+ ->ForwardKeyboardEventWithLatencyInfo(event, ui::LatencyInfo());
}
void GetCookiesCallback(std::string* cookies_out,

Powered by Google App Engine
This is Rietveld 408576698