Index: ash/shell.cc |
diff --git a/ash/shell.cc b/ash/shell.cc |
index 9062d81afef808035530897d9c50fbcfab07187f..a40d3b55bb5f4dc48d71a5a6c2281fd51399119c 100644 |
--- a/ash/shell.cc |
+++ b/ash/shell.cc |
@@ -745,6 +745,12 @@ Shell::~Shell() { |
resize_shadow_controller_.reset(); |
window_cycle_controller_.reset(); |
+ |
+ // Need to ensure that the WindowSelector is properly destroyed and cleaned up |
+ // prior to deleting the |window_selector_controller_|. See |
+ // WindowSelectorController documentation for more info. |
+ if (window_selector_controller_->IsSelecting()) |
+ window_selector_controller_->ToggleOverview(); |
jonross
2015/01/15 19:39:42
I'd like to avoid this if possible. Can we check w
bruthig
2015/01/16 19:54:43
Done.
|
window_selector_controller_.reset(); |
mru_window_tracker_.reset(); |