Index: ui/aura/monitor_change_observer_x11.cc |
diff --git a/ui/aura/monitor_change_observer_x11.cc b/ui/aura/monitor_change_observer_x11.cc |
index 59a0ebe51bd2a0a57264aef05f85d7280d091a81..472f214acd9d52c3e261c358c80333230401f500 100644 |
--- a/ui/aura/monitor_change_observer_x11.cc |
+++ b/ui/aura/monitor_change_observer_x11.cc |
@@ -52,15 +52,13 @@ MonitorChangeObserverX11::MonitorChangeObserverX11() |
XRRSelectInput(xdisplay_, x_root_window_, RRScreenChangeNotifyMask); |
int error_base_ignored; |
XRRQueryExtension(xdisplay_, &xrandr_event_base_, &error_base_ignored); |
- static_cast<DispatcherLinux*>( |
- Env::GetInstance()->GetDispatcher())-> |
- WindowDispatcherCreated(x_root_window_, this); |
+ static_cast<DispatcherLinux*>(Env::GetInstance()->GetDispatcher())-> |
+ RegisterDispatcherForRootWindow(this); |
} |
MonitorChangeObserverX11::~MonitorChangeObserverX11() { |
- static_cast<DispatcherLinux*>( |
- Env::GetInstance()->GetDispatcher())-> |
- WindowDispatcherDestroying(x_root_window_); |
+ static_cast<DispatcherLinux*>(Env::GetInstance()->GetDispatcher())-> |
+ UnregisterDispatcherForRootWindow(this); |
} |
bool MonitorChangeObserverX11::Dispatch(const base::NativeEvent& event) { |