| Index: ash/accelerators/nested_dispatcher_controller_unittest.cc
|
| diff --git a/ash/accelerators/nested_dispatcher_controller_unittest.cc b/ash/accelerators/nested_dispatcher_controller_unittest.cc
|
| index 67f528bc9858aa1771ded715152dc2dc213e8c9a..47dcce6bf07123d69a4391d54e01e8155851392e 100644
|
| --- a/ash/accelerators/nested_dispatcher_controller_unittest.cc
|
| +++ b/ash/accelerators/nested_dispatcher_controller_unittest.cc
|
| @@ -84,11 +84,10 @@ void DispatchKeyReleaseA() {
|
| #elif defined(USE_X11)
|
| ui::ScopedXI2Event native_event;
|
| native_event.InitKeyEvent(ui::ET_KEY_PRESSED, ui::VKEY_A, 0);
|
| - aura::WindowEventDispatcher* dispatcher =
|
| - ash::Shell::GetPrimaryRootWindow()->GetDispatcher();
|
| - dispatcher->host()->PostNativeEvent(native_event);
|
| + aura::WindowTreeHost* host = ash::Shell::GetPrimaryRootWindow()->GetHost();
|
| + host->PostNativeEvent(native_event);
|
| native_event.InitKeyEvent(ui::ET_KEY_RELEASED, ui::VKEY_A, 0);
|
| - dispatcher->host()->PostNativeEvent(native_event);
|
| + host->PostNativeEvent(native_event);
|
| #endif
|
| // Make sure the inner message-loop terminates after dispatching the events.
|
| base::MessageLoop::current()->PostTask(FROM_HERE,
|
|
|