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

Unified Diff: content/browser/site_per_process_browsertest.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/browser/site_per_process_browsertest.cc
diff --git a/content/browser/site_per_process_browsertest.cc b/content/browser/site_per_process_browsertest.cc
index 7dd1f4466c4ca12d911c5e5e1492cafb47f5f25c..bb123ca49b6aa48a911e86527c50828f358bd788 100644
--- a/content/browser/site_per_process_browsertest.cc
+++ b/content/browser/site_per_process_browsertest.cc
@@ -8309,16 +8309,18 @@ IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest,
new PendingWidgetMessageFilter();
process1->AddFilter(filter1.get());
EXPECT_TRUE(ExecuteScript(child1, "focusSelectMenu();"));
- child1->current_frame_host()->GetRenderWidgetHost()->ForwardKeyboardEvent(
- event);
+ child1->current_frame_host()
+ ->GetRenderWidgetHost()
+ ->ForwardKeyboardEventWithLatencyInfo(event, ui::LatencyInfo());
filter1->Wait();
scoped_refptr<PendingWidgetMessageFilter> filter2 =
new PendingWidgetMessageFilter();
process2->AddFilter(filter2.get());
EXPECT_TRUE(ExecuteScript(child2, "focusSelectMenu();"));
- child2->current_frame_host()->GetRenderWidgetHost()->ForwardKeyboardEvent(
- event);
+ child2->current_frame_host()
+ ->GetRenderWidgetHost()
+ ->ForwardKeyboardEventWithLatencyInfo(event, ui::LatencyInfo());
filter2->Wait();
// At this point, we should have two pending widgets.

Powered by Google App Engine
This is Rietveld 408576698