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

Unified Diff: ash/shell.cc

Issue 1907863002: Converts DockedWindowLayoutManager to common ash/wm types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 4 years, 8 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 | « ash/root_window_controller.cc ('k') | ash/wm/aura/aura_layout_manager_adapter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index a24d502c0db8340311ae0b532fca1fc09cbc0b7c..fc7270b09a2d4795e6b1fa9833449e13378ae6b4 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -221,7 +221,6 @@ bool Shell::HasInstance() {
// static
void Shell::DeleteInstance() {
delete instance_;
- instance_ = nullptr;
}
// static
@@ -817,6 +816,10 @@ Shell::~Shell() {
display_manager_->CreateScreenForShutdown();
display_configuration_controller_.reset();
+ // Needs to happen before |window_tree_host_manager_|. Calls back to Shell, so
+ // also needs to be destroyed before |instance_| reset to null.
+ wm_globals_.reset();
+
// Depends on |focus_client_|, so must be destroyed before.
window_tree_host_manager_->Shutdown();
window_tree_host_manager_.reset();
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/wm/aura/aura_layout_manager_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698