| Index: services/ui/ws/window_tree.cc
|
| diff --git a/services/ui/ws/window_tree.cc b/services/ui/ws/window_tree.cc
|
| index 4cd5aef54e840c44e017510971d084ca10722b75..dad121fdd3271b407c845a26dcf465f18ab2227f 100644
|
| --- a/services/ui/ws/window_tree.cc
|
| +++ b/services/ui/ws/window_tree.cc
|
| @@ -182,6 +182,13 @@ const DisplayManager* WindowTree::display_manager() const {
|
| return window_server_->display_manager();
|
| }
|
|
|
| +void WindowTree::PrepareForWindowServerShutdown() {
|
| + window_manager_internal_client_binding_.reset();
|
| + binding_->ResetClientForShutdown();
|
| + if (window_manager_internal_)
|
| + window_manager_internal_ = binding_->GetWindowManager();
|
| +}
|
| +
|
| void WindowTree::AddRootForWindowManager(const ServerWindow* root) {
|
| DCHECK(window_manager_internal_);
|
| const ClientWindowId client_window_id(WindowIdToTransportId(root->id()));
|
|
|