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

Unified Diff: ash/wm/overview/window_selector_controller.cc

Issue 2041423002: Moves MruWindowTracker to WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_mru_window_tracker
Patch Set: wm Created 4 years, 6 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 | « ash/wm/overview/window_selector.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/overview/window_selector_controller.cc
diff --git a/ash/wm/overview/window_selector_controller.cc b/ash/wm/overview/window_selector_controller.cc
index dd81c13165ceff09c9e037f0c2f63205c470915e..2f281c54c8c00e3c3b57c39ca9b9f7c6f2ff9708 100644
--- a/ash/wm/overview/window_selector_controller.cc
+++ b/ash/wm/overview/window_selector_controller.cc
@@ -7,6 +7,7 @@
#include <vector>
#include "ash/common/session/session_state_delegate.h"
+#include "ash/common/wm/mru_window_tracker.h"
#include "ash/common/wm/window_state.h"
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
@@ -44,7 +45,8 @@ void WindowSelectorController::ToggleOverview() {
if (!CanSelect())
return;
- std::vector<WmWindow*> windows = WmShell::Get()->GetMruWindowList();
+ std::vector<WmWindow*> windows =
+ WmShell::Get()->GetMruWindowTracker()->BuildMruWindowList();
auto end =
std::remove_if(windows.begin(), windows.end(),
std::not1(std::ptr_fun(&WindowSelector::IsSelectable)));
« no previous file with comments | « ash/wm/overview/window_selector.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698