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

Unified Diff: chrome/browser/android/vr_shell/vr_input_manager.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/android/vr_shell/vr_input_manager.cc
diff --git a/chrome/browser/android/vr_shell/vr_input_manager.cc b/chrome/browser/android/vr_shell/vr_input_manager.cc
index 68f2b273e71bd9b01115eb11315617ba7bc8c107..84e0b66831573d1a2343d2912aaa1839cb75689a 100644
--- a/chrome/browser/android/vr_shell/vr_input_manager.cc
+++ b/chrome/browser/android/vr_shell/vr_input_manager.cc
@@ -106,8 +106,10 @@ void VrInputManager::ForwardKeyboardEvent(
if (rwhv == nullptr)
return;
content::RenderWidgetHost* rwh = rwhv->GetRenderWidgetHost();
+ ui::LatencyInfo latency_info(ui::SourceEventType::KEY);
+ latency_info.AddLatencyNumber(ui::INPUT_EVENT_LATENCY_UI_COMPONENT, 0, 0);
if (rwh)
- rwh->ForwardKeyboardEvent(keyboard_event);
+ rwh->ForwardKeyboardEventWithLatencyInfo(keyboard_event, latency_info);
}
} // namespace vr_shell

Powered by Google App Engine
This is Rietveld 408576698