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

Unified Diff: services/ui/ws/window_tree_binding.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_binding.h ('k') | services/ui/ws/window_tree_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_tree_binding.cc
diff --git a/services/ui/ws/window_tree_binding.cc b/services/ui/ws/window_tree_binding.cc
index 94bac3aedf29e13266595587d640e133ca7e07bf..39e382553f7469b1c7588e0b1fe9c921d5eda75b 100644
--- a/services/ui/ws/window_tree_binding.cc
+++ b/services/ui/ws/window_tree_binding.cc
@@ -16,6 +16,10 @@ WindowTreeBinding::WindowTreeBinding(mojom::WindowTreeClient* client)
WindowTreeBinding::~WindowTreeBinding() {}
+void WindowTreeBinding::ResetClientForShutdown() {
+ client_ = CreateClientForShutdown();
+}
+
DefaultWindowTreeBinding::DefaultWindowTreeBinding(
WindowTree* tree,
WindowServer* window_server,
@@ -39,14 +43,6 @@ DefaultWindowTreeBinding::DefaultWindowTreeBinding(
DefaultWindowTreeBinding::~DefaultWindowTreeBinding() {}
-void DefaultWindowTreeBinding::SetIncomingMethodCallProcessingPaused(
- bool paused) {
- if (paused)
- binding_.PauseIncomingMethodCallProcessing();
- else
- binding_.ResumeIncomingMethodCallProcessing();
-}
-
mojom::WindowTreePtr DefaultWindowTreeBinding::CreateInterfacePtrAndBind() {
DCHECK(!binding_.is_bound());
return binding_.CreateInterfacePtrAndBind();
@@ -58,5 +54,19 @@ mojom::WindowManager* DefaultWindowTreeBinding::GetWindowManager() {
return window_manager_internal_.get();
}
+void DefaultWindowTreeBinding::SetIncomingMethodCallProcessingPaused(
+ bool paused) {
+ if (paused)
+ binding_.PauseIncomingMethodCallProcessing();
+ else
+ binding_.ResumeIncomingMethodCallProcessing();
+}
+
+mojom::WindowTreeClient* DefaultWindowTreeBinding::CreateClientForShutdown() {
+ client_.reset();
+ GetProxy(&client_);
+ return client_.get();
+}
+
} // namespace ws
} // namespace ui
« no previous file with comments | « services/ui/ws/window_tree_binding.h ('k') | services/ui/ws/window_tree_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698