| Index: ash/accelerators/accelerator_controller.cc
|
| diff --git a/ash/accelerators/accelerator_controller.cc b/ash/accelerators/accelerator_controller.cc
|
| index 4817c59799e2524182b9ba59ed19ae53e98aa712..05688b781e531e435010c2f0c613404237b235a8 100644
|
| --- a/ash/accelerators/accelerator_controller.cc
|
| +++ b/ash/accelerators/accelerator_controller.cc
|
| @@ -88,7 +88,7 @@ bool HandleCycleWindowMRU(WindowCycleController::Direction direction,
|
| }
|
|
|
| void HandleCycleWindowLinear(CycleDirection direction) {
|
| - Shell::GetInstance()->launcher()->CycleWindowLinear(direction);
|
| + Launcher::ForPrimaryDisplay()->CycleWindowLinear(direction);
|
| }
|
|
|
| #if defined(OS_CHROMEOS)
|
| @@ -595,8 +595,8 @@ bool AcceleratorController::PerformAction(int action,
|
| HandleVolumeUp(accelerator);
|
| break;
|
| case FOCUS_LAUNCHER:
|
| - if (shell->launcher())
|
| - return shell->focus_cycler()->FocusWidget(shell->launcher()->widget());
|
| + return shell->focus_cycler()->FocusWidget(
|
| + Launcher::ForPrimaryDisplay()->widget());
|
| break;
|
| case FOCUS_NEXT_PANE:
|
| return HandleRotatePaneFocus(Shell::FORWARD);
|
| @@ -844,10 +844,9 @@ bool AcceleratorController::AcceleratorPressed(
|
| }
|
|
|
| void AcceleratorController::SwitchToWindow(int window) {
|
| - const LauncherItems& items =
|
| - Shell::GetInstance()->launcher()->model()->items();
|
| - int item_count =
|
| - Shell::GetInstance()->launcher()->model()->item_count();
|
| + Launcher* launcher = Launcher::ForPrimaryDisplay();
|
| + const LauncherItems& items = launcher->model()->items();
|
| + int item_count = launcher->model()->item_count();
|
| int indexes_left = window >= 0 ? window : item_count;
|
| int found_index = -1;
|
|
|
| @@ -868,7 +867,7 @@ void AcceleratorController::SwitchToWindow(int window) {
|
| (items[found_index].status == ash::STATUS_RUNNING ||
|
| items[found_index].status == ash::STATUS_CLOSED)) {
|
| // Then set this one as active.
|
| - Shell::GetInstance()->launcher()->ActivateLauncherItem(found_index);
|
| + launcher->ActivateLauncherItem(found_index);
|
| }
|
| }
|
|
|
|
|