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

Unified Diff: services/ui/ws/window_server.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/test_utils.cc ('k') | services/ui/ws/window_tree.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_server.cc
diff --git a/services/ui/ws/window_server.cc b/services/ui/ws/window_server.cc
index 3274da7cfa4d750f8bfea8203be64d0c91cd96e0..e02e3c84bb2681f73d44cb28d41ac7cc8d0de2f3 100644
--- a/services/ui/ws/window_server.cc
+++ b/services/ui/ws/window_server.cc
@@ -61,6 +61,9 @@ WindowServer::WindowServer(WindowServerDelegate* delegate)
WindowServer::~WindowServer() {
in_destructor_ = true;
+ for (auto& pair : tree_map_)
+ pair.second->PrepareForWindowServerShutdown();
+
// Destroys the window trees results in querying for the display. Tear down
// the displays first so that the trees are notified of the display going
// away while the display is still valid.
« no previous file with comments | « services/ui/ws/test_utils.cc ('k') | services/ui/ws/window_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698