Index: content/browser/power_save_blocker_x11.cc |
diff --git a/content/browser/power_save_blocker_x11.cc b/content/browser/power_save_blocker_x11.cc |
index cecb2324cc2213bf69d372045521c228938dd63c..e5fb4e5f3df43c5e468dbc9e6d17832459c36732 100644 |
--- a/content/browser/power_save_blocker_x11.cc |
+++ b/content/browser/power_save_blocker_x11.cc |
@@ -22,7 +22,6 @@ |
#include "base/memory/scoped_ptr.h" |
#include "base/memory/singleton.h" |
#include "base/message_loop/message_loop_proxy.h" |
-#include "base/message_loop/message_pump_x11.h" |
#include "base/nix/xdg_util.h" |
#include "base/synchronization/lock.h" |
#include "content/public/browser/browser_thread.h" |
@@ -294,7 +293,7 @@ void PowerSaveBlockerImpl::Delegate::RemoveBlock(DBusAPI api) { |
// static |
bool PowerSaveBlockerImpl::Delegate::DPMSEnabled() { |
- XDisplay* display = base::MessagePumpForUI::GetDefaultXDisplay(); |
+ XDisplay* display = gfx::GetXDisplay(); |
BOOL enabled = false; |
int dummy; |
if (DPMSQueryExtension(display, &dummy, &dummy) && DPMSCapable(display)) { |