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

Unified Diff: chrome/browser/autofill/autofill_interactive_uitest.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: chrome/browser/autofill/autofill_interactive_uitest.cc
diff --git a/chrome/browser/autofill/autofill_interactive_uitest.cc b/chrome/browser/autofill/autofill_interactive_uitest.cc
index cbefb075964daf1412fec4d8918a2754eb435181..ff050182620c391dce5f4edf546180e65d4c46ae 100644
--- a/chrome/browser/autofill/autofill_interactive_uitest.cc
+++ b/chrome/browser/autofill/autofill_interactive_uitest.cc
@@ -466,7 +466,8 @@ class AutofillInteractiveTest : public InProcessBrowserTest {
// handled by the installed callbacks do not end up crashing the test.
GetRenderViewHost()->GetWidget()->AddKeyPressEventCallback(
key_press_event_sink_);
- GetRenderViewHost()->GetWidget()->ForwardKeyboardEvent(event);
+ GetRenderViewHost()->GetWidget()->ForwardKeyboardEventWithLatencyInfo(
+ event, ui::LatencyInfo());
test_delegate_.Wait();
GetRenderViewHost()->GetWidget()->RemoveKeyPressEventCallback(
key_press_event_sink_);
@@ -494,7 +495,8 @@ class AutofillInteractiveTest : public InProcessBrowserTest {
// handled by the installed callbacks do not end up crashing the test.
GetRenderViewHost()->GetWidget()->AddKeyPressEventCallback(
key_press_event_sink_);
- GetRenderViewHost()->GetWidget()->ForwardKeyboardEvent(event);
+ GetRenderViewHost()->GetWidget()->ForwardKeyboardEventWithLatencyInfo(
+ event, ui::LatencyInfo());
GetRenderViewHost()->GetWidget()->RemoveKeyPressEventCallback(
key_press_event_sink_);
}

Powered by Google App Engine
This is Rietveld 408576698