Chromium Code Reviews| Index: ash/shell.cc |
| diff --git a/ash/shell.cc b/ash/shell.cc |
| index a24d502c0db8340311ae0b532fca1fc09cbc0b7c..2034fa3b65bc0f636d99932e976d8cb6625d051a 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_|. Callback to Shell, so |
|
varkha
2016/04/21 17:46:55
nit: s/Callback/Calls back?
sky
2016/04/21 18:03:04
Done.
|
| + // 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(); |