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

Unified Diff: services/ui/ws/window_tree.cc

Issue 2352893002: Makes windowserver not send messages during shutdown (Closed)
Patch Set: merge Created 4 years, 3 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 | « services/ui/ws/window_tree.h ('k') | services/ui/ws/window_tree_binding.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()));
« no previous file with comments | « services/ui/ws/window_tree.h ('k') | services/ui/ws/window_tree_binding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698