Index: ui/views/widget/widget_interactive_uitest.cc |
diff --git a/ui/views/widget/widget_interactive_uitest.cc b/ui/views/widget/widget_interactive_uitest.cc |
index 202d4536d97fc970439c2183270794f27faa6227..3fd2509ecdb9123a98ba2ba72293a91d24ab70ba 100644 |
--- a/ui/views/widget/widget_interactive_uitest.cc |
+++ b/ui/views/widget/widget_interactive_uitest.cc |
@@ -780,7 +780,7 @@ TEST_F(WidgetCaptureTest, MAYBE_MouseEventDispatchedToRightWindow) { |
// |widget2| has capture, |widget1| should still get the event. |
ui::MouseEvent mouse_event(ui::ET_MOUSE_EXITED, gfx::Point(), gfx::Point(), |
ui::EF_NONE, ui::EF_NONE); |
- widget1.GetNativeWindow()->GetDispatcher()->AsRootWindowHostDelegate()-> |
+ widget1.GetNativeWindow()->GetDispatcher()->AsWindowTreeHostDelegate()-> |
OnHostMouseEvent(&mouse_event); |
EXPECT_TRUE(widget1.GetAndClearGotMouseEvent()); |
EXPECT_FALSE(widget2.GetAndClearGotMouseEvent()); |