summaryrefslogtreecommitdiffstats
path: root/ash/test/ui_controls_factory_ash.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/test/ui_controls_factory_ash.cc')
-rw-r--r--ash/test/ui_controls_factory_ash.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ash/test/ui_controls_factory_ash.cc b/ash/test/ui_controls_factory_ash.cc
index ab0c0cd..458a4cb 100644
--- a/ash/test/ui_controls_factory_ash.cc
+++ b/ash/test/ui_controls_factory_ash.cc
@@ -86,7 +86,7 @@ class UIControlsAsh : public UIControlsAura {
bool command,
const base::Closure& closure) OVERRIDE {
aura::RootWindow* root =
- window ? window->GetRootWindow() : ash::Shell::GetActiveRootWindow();
+ window ? window->GetRootWindow() : ash::Shell::GetTargetRootWindow();
UIControlsAura* ui_controls = GetUIControlsForRootWindow(root);
return ui_controls && ui_controls->SendKeyPressNotifyWhenDone(
window, key, control, shift, alt, command, closure);
@@ -131,7 +131,7 @@ class UIControlsAsh : public UIControlsAura {
virtual void RunClosureAfterAllPendingUIEvents(
const base::Closure& closure) OVERRIDE {
UIControlsAura* ui_controls = GetUIControlsForRootWindow(
- ash::Shell::GetActiveRootWindow());
+ ash::Shell::GetTargetRootWindow());
if (ui_controls)
ui_controls->RunClosureAfterAllPendingUIEvents(closure);
}