Index: gpu/config/gpu_info_collector_x11.cc |
diff --git a/gpu/config/gpu_info_collector_x11.cc b/gpu/config/gpu_info_collector_x11.cc |
index 851691839f239e98294607d3c949818229c7bc5b..b1182fa0ea4f598354325fd90d554be879a78d6c 100644 |
--- a/gpu/config/gpu_info_collector_x11.cc |
+++ b/gpu/config/gpu_info_collector_x11.cc |
@@ -20,6 +20,7 @@ |
#include "library_loaders/libpci.h" |
#include "third_party/libXNVCtrl/NVCtrl.h" |
#include "third_party/libXNVCtrl/NVCtrlLib.h" |
+#include "ui/gfx/x/x11_types.h" |
#include "ui/gl/gl_bindings.h" |
#include "ui/gl/gl_context.h" |
#include "ui/gl/gl_implementation.h" |
@@ -70,7 +71,7 @@ std::string CollectDriverVersionATI() { |
// Use NVCtrl extention to query NV driver version. |
// Return empty string on failing. |
std::string CollectDriverVersionNVidia() { |
- Display* display = base::MessagePumpForUI::GetDefaultXDisplay(); |
+ Display* display = gfx::GetXDisplay(); |
if (!display) { |
LOG(ERROR) << "XOpenDisplay failed."; |
return std::string(); |