Index: ash/drag_drop/drag_drop_controller_unittest.cc |
diff --git a/ash/drag_drop/drag_drop_controller_unittest.cc b/ash/drag_drop/drag_drop_controller_unittest.cc |
index fd26f3704b41d1219a53f66a71169da656606805..fa4f2bcde2afe4a4c8b50002caebdb136ecf9736 100644 |
--- a/ash/drag_drop/drag_drop_controller_unittest.cc |
+++ b/ash/drag_drop/drag_drop_controller_unittest.cc |
@@ -283,7 +283,8 @@ void DispatchGesture(ui::EventType gesture_type, gfx::Point location) { |
ui::EventTimeForNow(), |
ui::GestureEventDetails(gesture_type, 0, 0), |
1); |
- Shell::GetPrimaryRootWindow()->DispatchGestureEvent(&gesture_event); |
+ Shell::GetPrimaryRootWindow()->GetDispatcher()->DispatchGestureEvent( |
+ &gesture_event); |
} |
bool IsGestureEventType(ui::EventType type) { |
@@ -762,8 +763,8 @@ TEST_F(DragDropControllerTest, SyntheticEventsDuringDragDrop) { |
gfx::Point mouse_move_location = drag_view->bounds().CenterPoint(); |
ui::MouseEvent mouse_move(ui::ET_MOUSE_MOVED, mouse_move_location, |
mouse_move_location, 0); |
- Shell::GetPrimaryRootWindow()->AsRootWindowHostDelegate()->OnHostMouseEvent( |
- &mouse_move); |
+ Shell::GetPrimaryRootWindow()->GetDispatcher()->AsRootWindowHostDelegate()-> |
+ OnHostMouseEvent(&mouse_move); |
} |
generator.ReleaseLeftButton(); |