Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Unified Diff: chrome/browser/ui/ash/launcher/shell_window_launcher_item_controller.cc

Issue 22887015: Remove PerBrowser launcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nit Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/ash/launcher/launcher_context_menu_unittest.cc ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « chrome/browser/ui/ash/launcher/launcher_context_menu_unittest.cc ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698