| 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() {
|
|
|