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

Unified Diff: ash/common/wm/panels/panel_layout_manager.cc

Issue 2108383002: Fixes crash in PanelLayoutManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/panels/panel_layout_manager.cc
diff --git a/ash/common/wm/panels/panel_layout_manager.cc b/ash/common/wm/panels/panel_layout_manager.cc
index 3c1246ec00fd163a9872450f14fac72237c740fd..0aeb65c388c64adc1455839984e6757b2f9940ae 100644
--- a/ash/common/wm/panels/panel_layout_manager.cc
+++ b/ash/common/wm/panels/panel_layout_manager.cc
@@ -572,7 +572,7 @@ void PanelLayoutManager::RestorePanel(WmWindow* panel) {
}
void PanelLayoutManager::Relayout() {
- if (!shelf_)
+ if (!shelf_ || !shelf_->GetWindow())
return;
// Suppress layouts during overview mode because changing window bounds
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698