Index: ash/wm/workspace/workspace_event_handler_unittest.cc |
diff --git a/ash/wm/workspace/workspace_event_handler_unittest.cc b/ash/wm/workspace/workspace_event_handler_unittest.cc |
index ffaf210b2cf8d1467c6f2ec86b5f0903b18db7ba..dcb1e18ab800848d740e86d52241d37300faa043 100644 |
--- a/ash/wm/workspace/workspace_event_handler_unittest.cc |
+++ b/ash/wm/workspace/workspace_event_handler_unittest.cc |
@@ -274,12 +274,12 @@ TEST_F(WorkspaceEventHandlerTest, DoubleClickCaptionTogglesMaximize) { |
ui::EF_MIDDLE_MOUSE_BUTTON | ui::EF_IS_DOUBLE_CLICK, |
ui::EF_MIDDLE_MOUSE_BUTTON); |
aura::WindowEventDispatcher* dispatcher = root->GetDispatcher(); |
- dispatcher->AsRootWindowHostDelegate()->OnHostMouseEvent(&press); |
+ dispatcher->AsWindowTreeHostDelegate()->OnHostMouseEvent(&press); |
ui::MouseEvent release(ui::ET_MOUSE_RELEASED, generator.current_location(), |
generator.current_location(), |
ui::EF_IS_DOUBLE_CLICK, |
ui::EF_MIDDLE_MOUSE_BUTTON); |
- dispatcher->AsRootWindowHostDelegate()->OnHostMouseEvent(&release); |
+ dispatcher->AsWindowTreeHostDelegate()->OnHostMouseEvent(&release); |
EXPECT_FALSE(window_state->IsMaximized()); |
EXPECT_EQ("1,2 30x40", window->bounds().ToString()); |