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

Unified Diff: ui/platform_window/x11/x11_window.cc

Issue 2741533002: Fix AshWindowTreeHost shutdown for Ozone X11. (Closed)
Patch Set: Add to other PlatformWindow implementations. Created 3 years, 9 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 | « ui/platform_window/x11/x11_window.h ('k') | ui/platform_window/x11/x11_window_ozone.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/platform_window/x11/x11_window.cc
diff --git a/ui/platform_window/x11/x11_window.cc b/ui/platform_window/x11/x11_window.cc
index 3c4ee2a6e4b2dd6c489d1d64591f33d25a8c0ca5..64bd7a8f1ae3a566a5e1d5c89299915026ff8d7b 100644
--- a/ui/platform_window/x11/x11_window.cc
+++ b/ui/platform_window/x11/x11_window.cc
@@ -24,6 +24,10 @@ X11Window::X11Window(PlatformWindowDelegate* delegate, const gfx::Rect& bounds)
}
X11Window::~X11Window() {
+ X11Window::PrepareForShutdown();
+}
+
+void X11Window::PrepareForShutdown() {
PlatformEventSource::GetInstance()->RemovePlatformEventDispatcher(this);
}
« no previous file with comments | « ui/platform_window/x11/x11_window.h ('k') | ui/platform_window/x11/x11_window_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698