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

Unified Diff: content/public/test/browser_test_utils.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/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 01620c8a7b8f5ae3e0998534f42919a75cd6a900..e8e631947c3e8148a9e5efc19c4a3de29fea4cfe 100644
--- a/content/public/test/browser_test_utils.cc
+++ b/content/public/test/browser_test_utils.cc
@@ -236,7 +236,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