summaryrefslogtreecommitdiffstats
path: root/ash/launcher/launcher_window_cycler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/launcher/launcher_window_cycler.cc')
-rw-r--r--ash/launcher/launcher_window_cycler.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/ash/launcher/launcher_window_cycler.cc b/ash/launcher/launcher_window_cycler.cc
index c689c4e..75f22ac 100644
--- a/ash/launcher/launcher_window_cycler.cc
+++ b/ash/launcher/launcher_window_cycler.cc
@@ -4,6 +4,7 @@
#include "ash/launcher/launcher_window_cycler.h"
+#include "ash/launcher/launcher_delegate.h"
#include "ash/shell.h"
#include "ash/shell_delegate.h"
#include "ash/wm/window_cycle_controller.h"
@@ -11,7 +12,8 @@
namespace ash {
-LauncherWindowCycler::LauncherWindowCycler() {
+LauncherWindowCycler::LauncherWindowCycler(LauncherDelegate* delegate)
+ : delegate_(delegate) {
}
LauncherWindowCycler::~LauncherWindowCycler() {
@@ -27,7 +29,7 @@ void LauncherWindowCycler::Cycle() {
ShellDelegate::SOURCE_LAUNCHER, ShellDelegate::ORDER_MRU)));
}
if (windows_->empty())
- ash::Shell::GetInstance()->delegate()->CreateNewWindow();
+ delegate_->CreateNewWindow();
else
windows_->Step(WindowCycleList::FORWARD);
}