Index: ui/aura/root_window_host_x11.cc |
diff --git a/ui/aura/root_window_host_x11.cc b/ui/aura/root_window_host_x11.cc |
index 56f311b0b1a14cf12483f047ab15af23299825a0..3dec16906ec4617a5e65641fac77ed2f4e7eefc4 100644 |
--- a/ui/aura/root_window_host_x11.cc |
+++ b/ui/aura/root_window_host_x11.cc |
@@ -363,7 +363,7 @@ class RootWindowHostX11::MouseMoveFilter { |
RootWindowHostX11::RootWindowHostX11(const gfx::Rect& bounds) |
: delegate_(NULL), |
- xdisplay_(base::MessagePumpX11::GetDefaultXDisplay()), |
+ xdisplay_(ui::GetXDisplay()), |
xwindow_(0), |
x_root_window_(DefaultRootWindow(xdisplay_)), |
current_cursor_(ui::kCursorNull), |
@@ -1090,7 +1090,7 @@ RootWindowHost* RootWindowHost::Create(const gfx::Rect& bounds) { |
// static |
gfx::Size RootWindowHost::GetNativeScreenSize() { |
- ::Display* xdisplay = base::MessagePumpX11::GetDefaultXDisplay(); |
+ ::Display* xdisplay = ui::GetXDisplay(); |
return gfx::Size(DisplayWidth(xdisplay, 0), DisplayHeight(xdisplay, 0)); |
} |