Index: ui/display/x11/edid_parser_x11.cc |
diff --git a/ui/display/x11/edid_parser_x11.cc b/ui/display/x11/edid_parser_x11.cc |
index c53bd897da5711fe303800adf9f32e72a7bc95e4..55fa62b62fc830136da3d7155a947c852dd591fc 100644 |
--- a/ui/display/x11/edid_parser_x11.cc |
+++ b/ui/display/x11/edid_parser_x11.cc |
@@ -8,9 +8,9 @@ |
#include <X11/Xatom.h> |
#include <X11/Xlib.h> |
-#include "base/message_loop/message_loop.h" |
#include "base/strings/string_util.h" |
#include "ui/display/edid_parser.h" |
+#include "ui/gfx/x/x11_types.h" |
namespace ui { |
@@ -20,7 +20,7 @@ bool IsRandRAvailable() { |
int randr_version_major = 0; |
int randr_version_minor = 0; |
static bool is_randr_available = XRRQueryVersion( |
- base::MessagePumpX11::GetDefaultXDisplay(), |
+ gfx::GetXDisplay(), |
&randr_version_major, &randr_version_minor); |
return is_randr_available; |
} |
@@ -32,10 +32,10 @@ bool GetEDIDProperty(XID output, std::vector<uint8_t>* edid) { |
if (!IsRandRAvailable()) |
return false; |
- Display* display = base::MessagePumpX11::GetDefaultXDisplay(); |
+ Display* display = gfx::GetXDisplay(); |
static Atom edid_property = XInternAtom( |
- base::MessagePumpX11::GetDefaultXDisplay(), |
+ gfx::GetXDisplay(), |
RR_PROPERTY_RANDR_EDID, false); |
bool has_edid_property = false; |