Fix crash related to focusable docked windows.
commit78770a41671dbfe9251cf7224f728bfb5bb37138
authorjonross <jonross@chromium.org>
Mon, 25 May 2015 17:40:11 +0000 (25 10:40 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 25 May 2015 17:40:45 +0000 (25 17:40 +0000)
treeb30ebb3712a4cd6e47a4614be817613faeb1d247
parentc67620d6f857f234404d921fcfd801fb495b5320
Fix crash related to focusable docked windows.

Docked windows are now focusable. https://codereview.chromium.org/1059903002/

Due to this MruWindowTracker began adding docked and dragging windows to the
WindowList twice.

MaximizeModeWindowManager also began maximizing docked windows.

This change updates MruWindowTracker to not specially handle docked windows, as
they are a part of the normal focusable window handling.

This change updates MaximizeModeWindowManager to not track nor maximize docked
windows.

TEST=MruWindowTrackerTest.DraggedWindowsInListOnlyOnce,
MaximizeModeWindowManagerTest.DontMaximizeDockedWindows
BUG=490469

Review URL: https://codereview.chromium.org/1155053002

Cr-Commit-Position: refs/heads/master@{#331295}
ash/wm/maximize_mode/maximize_mode_window_manager.cc
ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc
ash/wm/mru_window_tracker.cc
ash/wm/mru_window_tracker_unittest.cc