Index: ash/autoclick/autoclick_controller.cc |
diff --git a/ash/autoclick/autoclick_controller.cc b/ash/autoclick/autoclick_controller.cc |
index 062a9c3d686a552672c22faa6c86815b9a92d359..dd5e4a0f98b28fc828003d0cb6888c09c0893a5f 100644 |
--- a/ash/autoclick/autoclick_controller.cc |
+++ b/ash/autoclick/autoclick_controller.cc |
@@ -186,8 +186,8 @@ void AutoclickControllerImpl::DoAutoclick() { |
anchor_location_ = click_location; |
wm::ConvertPointFromScreen(root_window, &click_location); |
- aura::WindowEventDispatcher* dispatcher = root_window->GetDispatcher(); |
- dispatcher->host()->ConvertPointToHost(&click_location); |
+ aura::WindowTreeHost* host = root_window->GetHost(); |
+ host->ConvertPointToHost(&click_location); |
ui::MouseEvent press_event(ui::ET_MOUSE_PRESSED, |
click_location, |
@@ -201,9 +201,9 @@ void AutoclickControllerImpl::DoAutoclick() { |
ui::EF_LEFT_MOUSE_BUTTON); |
ui::EventDispatchDetails details = |
- dispatcher->OnEventFromSource(&press_event); |
+ host->dispatcher()->OnEventFromSource(&press_event); |
if (!details.dispatcher_destroyed) |
- details = dispatcher->OnEventFromSource(&release_event); |
+ details = host->dispatcher()->OnEventFromSource(&release_event); |
if (details.dispatcher_destroyed) |
return; |
} |