Index: trunk/src/ui/gfx/x/x11_types.cc |
=================================================================== |
--- trunk/src/ui/gfx/x/x11_types.cc (revision 263732) |
+++ trunk/src/ui/gfx/x/x11_types.cc (working copy) |
@@ -11,10 +11,7 @@ |
namespace gfx { |
XDisplay* GetXDisplay() { |
- static XDisplay* display = NULL; |
- if (!display) |
- display = XOpenDisplay(NULL); |
- return display; |
+ return base::MessagePumpForUI::GetDefaultXDisplay(); |
} |
void PutARGBImage(XDisplay* display, |