Index: ash/root_window_controller.cc |
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc |
index dde74bfe0942b6acf274acfe1c779490e324b9ae..f621e8057ae19b9a32e3ed749acc0549d112234c 100644 |
--- a/ash/root_window_controller.cc |
+++ b/ash/root_window_controller.cc |
@@ -486,8 +486,9 @@ WmWindow* RootWindowController::FindEventTarget( |
location_in_root, ui::EventTimeForNow(), |
ui::EF_NONE, ui::EF_NONE); |
ui::EventTarget* event_handler = |
- static_cast<ui::EventTarget*>(root_window) |
- ->GetEventTargeter() |
+ root_window->GetHost() |
+ ->dispatcher() |
+ ->GetDefaultEventTargeter() |
->FindTargetForEvent(root_window, &test_event); |
return WmWindow::Get(static_cast<aura::Window*>(event_handler)); |
} |