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 fa1948118b244f15953355be76ea3f27b3137f09..d801b99380a7bc89f3cbf5dde1a77cc522821b0e 100644 |
--- a/ash/wm/workspace/workspace_event_handler_unittest.cc |
+++ b/ash/wm/workspace/workspace_event_handler_unittest.cc |
@@ -305,12 +305,14 @@ 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->AsWindowTreeHostDelegate()->OnHostMouseEvent(&press); |
+ ui::EventDispatchDetails details = dispatcher->OnEventFromSource(&press); |
+ ASSERT_FALSE(details.dispatcher_destroyed); |
ui::MouseEvent release(ui::ET_MOUSE_RELEASED, generator.current_location(), |
generator.current_location(), |
ui::EF_IS_DOUBLE_CLICK, |
ui::EF_MIDDLE_MOUSE_BUTTON); |
- dispatcher->AsWindowTreeHostDelegate()->OnHostMouseEvent(&release); |
+ details = dispatcher->OnEventFromSource(&release); |
+ ASSERT_FALSE(details.dispatcher_destroyed); |
EXPECT_FALSE(window_state->IsMaximized()); |
EXPECT_EQ("1,2 30x40", window->bounds().ToString()); |