| Index: chrome/browser/ui/ash/launcher/shell_window_launcher_item_controller.cc
|
| diff --git a/chrome/browser/ui/ash/launcher/shell_window_launcher_item_controller.cc b/chrome/browser/ui/ash/launcher/shell_window_launcher_item_controller.cc
|
| index b4d562d857635f295b81fa10419675417df78a1d..0a5289321d074f4197d79733250dd18bc0b226c9 100644
|
| --- a/chrome/browser/ui/ash/launcher/shell_window_launcher_item_controller.cc
|
| +++ b/chrome/browser/ui/ash/launcher/shell_window_launcher_item_controller.cc
|
| @@ -11,7 +11,6 @@
|
| #include "chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item.h"
|
| #include "chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_v2app.h"
|
| #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h"
|
| -#include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.h"
|
| #include "chrome/browser/ui/ash/launcher/launcher_item_controller.h"
|
| #include "content/public/browser/web_contents.h"
|
| #include "ui/aura/client/aura_constants.h"
|
| @@ -155,8 +154,7 @@ void ShellWindowLauncherItemController::Clicked(const ui::Event& event) {
|
| } else {
|
| ShowAndActivateOrMinimize(panel);
|
| }
|
| - } else if (launcher_controller()->GetPerAppInterface() ||
|
| - shell_windows_.size() == 1) {
|
| + } else {
|
| ShellWindow* window_to_show = last_active_shell_window_ ?
|
| last_active_shell_window_ : shell_windows_.front();
|
| // If the event was triggered by a keystroke, we try to advance to the next
|
| @@ -168,20 +166,6 @@ void ShellWindowLauncherItemController::Clicked(const ui::Event& event) {
|
| } else {
|
| ShowAndActivateOrMinimize(window_to_show);
|
| }
|
| - } else {
|
| - // TODO(stevenjb): Deprecate
|
| - if (!last_active_shell_window_ ||
|
| - last_active_shell_window_->GetBaseWindow()->IsActive()) {
|
| - // Restore all windows since there is no other way to restore them.
|
| - for (ShellWindowList::iterator iter = shell_windows_.begin();
|
| - iter != shell_windows_.end(); ++iter) {
|
| - ShellWindow* shell_window = *iter;
|
| - if (shell_window->GetBaseWindow()->IsMinimized())
|
| - shell_window->GetBaseWindow()->Restore();
|
| - }
|
| - }
|
| - if (last_active_shell_window_)
|
| - ShowAndActivateOrMinimize(last_active_shell_window_);
|
| }
|
| }
|
|
|
| @@ -206,7 +190,7 @@ ShellWindowLauncherItemController::GetApplicationList(int event_flags) {
|
| shell_window->GetTitle(),
|
| image.get(), // Will be copied
|
| app_id(),
|
| - launcher_controller()->GetPerAppInterface(),
|
| + launcher_controller(),
|
| index,
|
| index == 0 /* has_leading_separator */));
|
| ++index;
|
|
|