Index: components/mus/public/cpp/tests/window_tree_client_private.cc |
diff --git a/components/mus/public/cpp/tests/window_tree_client_private.cc b/components/mus/public/cpp/tests/window_tree_client_private.cc |
index c5c6dfa44267c3c821a9d0cb8861d34646f37eae..42cb6f241e9a2355edbea816118d2fd104e627f8 100644 |
--- a/components/mus/public/cpp/tests/window_tree_client_private.cc |
+++ b/components/mus/public/cpp/tests/window_tree_client_private.cc |
@@ -37,11 +37,11 @@ void WindowTreeClientPrivate::OnEmbed(mojom::WindowTree* window_tree) { |
void WindowTreeClientPrivate::CallOnWindowInputEvent( |
Window* window, |
- const ui::Event& event) { |
+ std::unique_ptr<ui::Event> event) { |
const uint32_t event_id = 0u; |
const uint32_t observer_id = 0u; |
tree_client_impl_->OnWindowInputEvent(event_id, window->server_id(), |
- mojom::Event::From(event), observer_id); |
+ std::move(event), observer_id); |
} |
} // namespace mus |