Index: ui/aura/root_window_host_linux.cc |
=================================================================== |
--- ui/aura/root_window_host_linux.cc (revision 124527) |
+++ ui/aura/root_window_host_linux.cc (working copy) |
@@ -305,8 +305,6 @@ |
if (base::MessagePumpForUI::HasXInput2()) |
ui::TouchFactory::GetInstance()->SetupXI2ForXWindow(xwindow_); |
- MessageLoopForUI::current()->AddDestructionObserver(this); |
- |
// Initialize invisible cursor. |
char nodata[] = { 0, 0, 0, 0, 0, 0, 0, 0 }; |
XColor black; |
@@ -328,8 +326,6 @@ |
ui::GetXCursor(ui::kCursorClearXCursorCache); |
XFreeCursor(xdisplay_, invisible_cursor_); |
- |
- MessageLoopForUI::current()->RemoveDestructionObserver(this); |
} |
base::MessagePumpDispatcher::DispatchStatus RootWindowHostLinux::Dispatch( |
@@ -624,10 +620,6 @@ |
XSendEvent(xdisplay_, xwindow_, False, 0, &xevent); |
} |
-void RootWindowHostLinux::WillDestroyCurrentMessageLoop() { |
- aura::RootWindow::DeleteInstance(); |
-} |
- |
bool RootWindowHostLinux::IsWindowManagerPresent() { |
// Per ICCCM 2.8, "Manager Selections", window managers should take ownership |
// of WM_Sn selections (where n is a screen number). |