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

Unified Diff: ash/common/wm/overview/window_grid.cc

Issue 2252833004: Don't reposition if shutdown is in progress (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 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 | « no previous file | ash/common/wm/overview/window_selector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/overview/window_grid.cc
diff --git a/ash/common/wm/overview/window_grid.cc b/ash/common/wm/overview/window_grid.cc
index f1a5b4637f07ab05b0b47e919aff74988b1d9084..bb13d0f5c77891943458ec3d77ec147712adf27c 100644
--- a/ash/common/wm/overview/window_grid.cc
+++ b/ash/common/wm/overview/window_grid.cc
@@ -607,6 +607,9 @@ void WindowGrid::PositionWindowsMD(bool animate) {
}
void WindowGrid::PositionWindows(bool animate) {
+ if (window_selector_->is_shut_down())
+ return;
+
if (ash::MaterialDesignController::IsOverviewMaterial()) {
DCHECK(shield_widget_.get());
// Keep the background shield widget covering the whole screen.
« no previous file with comments | « no previous file | ash/common/wm/overview/window_selector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698