Index: ash/test/ui_controls_factory_ash.cc |
diff --git a/ash/test/ui_controls_factory_ash.cc b/ash/test/ui_controls_factory_ash.cc |
index 0a31af5037403312fa80ea06c2f1c4e82fb8b6b9..0c3caa3e399d9ad0ca35b9084870b365a15f5145 100644 |
--- a/ash/test/ui_controls_factory_ash.cc |
+++ b/ash/test/ui_controls_factory_ash.cc |
@@ -35,7 +35,7 @@ UIControlsAura* GetUIControlsForRootWindow(aura::Window* root_window) { |
root_window->GetProperty(kUIControlsKey); |
if (!native_ui_control) { |
native_ui_control = |
- aura::test::CreateUIControlsAura(root_window->GetDispatcher()); |
+ aura::test::CreateUIControlsAura(root_window->GetHost()->dispatcher()); |
// Pass the ownership to the |root_window|. |
root_window->SetProperty(kUIControlsKey, native_ui_control); |
} |