From 16059276dc0a1c38d0dcaf59378649b816d7a7e0 Mon Sep 17 00:00:00 2001 From: "oshima@chromium.org" Date: Mon, 22 Oct 2012 18:59:50 +0000 Subject: Create launcher on secondary displays Notify all root window controllers when login status has changed. This requires more refactoring to be functional and I'll add test when it starts working. BUG=145978 TEST=none Review URL: https://chromiumcodereview.appspot.com/11198087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163333 0039d316-1c4b-4281-b951-d872f2087c98 --- ash/focus_cycler_unittest.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ash/focus_cycler_unittest.cc') diff --git a/ash/focus_cycler_unittest.cc b/ash/focus_cycler_unittest.cc index a55472b..2ba405a 100644 --- a/ash/focus_cycler_unittest.cc +++ b/ash/focus_cycler_unittest.cc @@ -5,6 +5,7 @@ #include "ash/focus_cycler.h" #include "ash/launcher/launcher.h" +#include "ash/root_window_controller.h" #include "ash/shell.h" #include "ash/shell_window_ids.h" #include "ash/system/status_area_widget.h" @@ -66,7 +67,10 @@ class FocusCyclerTest : public AshTestBase { bool CreateTray() { if (tray_.get()) return false; - internal::StatusAreaWidget* widget = new internal::StatusAreaWidget; + aura::Window* parent = Shell::GetPrimaryRootWindowController()-> + GetContainer(ash::internal::kShellWindowId_StatusContainer); + + internal::StatusAreaWidget* widget = new internal::StatusAreaWidget(parent); widget->CreateTrayViews(NULL); widget->Show(); tray_.reset(widget->system_tray()); -- cgit v1.1