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

Unified Diff: ash/wm/maximize_mode/maximize_mode_window_manager.cc

Issue 2042913002: Converts MruWindowTracker to work with common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: not equal 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/ash_focus_rules.cc ('k') | ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/maximize_mode/maximize_mode_window_manager.cc
diff --git a/ash/wm/maximize_mode/maximize_mode_window_manager.cc b/ash/wm/maximize_mode/maximize_mode_window_manager.cc
index 4e1448040854aa207ee39c4ad128d775da1194e6..1328d3b9cf826b0e10db829d667f0684f3493def 100644
--- a/ash/wm/maximize_mode/maximize_mode_window_manager.cc
+++ b/ash/wm/maximize_mode/maximize_mode_window_manager.cc
@@ -5,6 +5,7 @@
#include "ash/wm/maximize_mode/maximize_mode_window_manager.h"
#include "ash/ash_switches.h"
+#include "ash/aura/wm_window_aura.h"
#include "ash/common/shell_window_ids.h"
#include "ash/common/wm/window_state.h"
#include "ash/common/wm/wm_event.h"
@@ -223,10 +224,8 @@ void MaximizeModeWindowManager::MaximizeAllWindows() {
MruWindowTracker::WindowList windows = ash::Shell::GetInstance()->
mru_window_tracker()->BuildWindowListIgnoreModal();
// Add all existing Mru windows.
- for (MruWindowTracker::WindowList::iterator window = windows.begin();
- window != windows.end(); ++window) {
- MaximizeAndTrackWindow(*window);
- }
+ for (WmWindow* window : windows)
+ MaximizeAndTrackWindow(WmWindowAura::GetAuraWindow(window));
}
void MaximizeModeWindowManager::RestoreAllWindows() {
« no previous file with comments | « ash/wm/ash_focus_rules.cc ('k') | ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698