| 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 d06063577285403aaf7bf174e14854fb6420e30f..883ccdd3e655a387e6cae2f55ad775c9b1420c1e 100644
|
| --- a/ash/test/ui_controls_factory_ash.cc
|
| +++ b/ash/test/ui_controls_factory_ash.cc
|
| @@ -73,8 +73,8 @@ class UIControlsAsh : public UIControlsAura {
|
| bool alt,
|
| bool command,
|
| const base::Closure& closure) override {
|
| - aura::Window* root =
|
| - window ? window->GetRootWindow() : ash::Shell::GetTargetRootWindow();
|
| + aura::Window* root = window ? window->GetRootWindow()
|
| + : ash::Shell::GetRootWindowForNewWindows();
|
| UIControlsAura* ui_controls = GetUIControlsForRootWindow(root);
|
| return ui_controls &&
|
| ui_controls->SendKeyPressNotifyWhenDone(window, key, control, shift,
|
| @@ -120,7 +120,7 @@ class UIControlsAsh : public UIControlsAura {
|
| void RunClosureAfterAllPendingUIEvents(
|
| const base::Closure& closure) override {
|
| UIControlsAura* ui_controls =
|
| - GetUIControlsForRootWindow(ash::Shell::GetTargetRootWindow());
|
| + GetUIControlsForRootWindow(ash::Shell::GetRootWindowForNewWindows());
|
| if (ui_controls)
|
| ui_controls->RunClosureAfterAllPendingUIEvents(closure);
|
| }
|
|
|