Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: trunk/src/ui/views/widget/desktop_aura/x11_desktop_handler.cc

Issue 23943010: Revert 223621 "x11: Prefer using ui::GetXDisplay() over getting ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: trunk/src/ui/views/widget/desktop_aura/x11_desktop_handler.cc
===================================================================
--- trunk/src/ui/views/widget/desktop_aura/x11_desktop_handler.cc (revision 223638)
+++ trunk/src/ui/views/widget/desktop_aura/x11_desktop_handler.cc (working copy)
@@ -38,7 +38,7 @@
}
X11DesktopHandler::X11DesktopHandler()
- : xdisplay_(ui::GetXDisplay()),
+ : xdisplay_(base::MessagePumpX11::GetDefaultXDisplay()),
x_root_window_(DefaultRootWindow(xdisplay_)),
current_window_(None),
atom_cache_(xdisplay_, kAtomsToCache) {
@@ -58,7 +58,7 @@
}
void X11DesktopHandler::ActivateWindow(::Window window) {
- DCHECK_EQ(ui::GetXDisplay(), xdisplay_);
+ DCHECK_EQ(base::MessagePumpX11::GetDefaultXDisplay(), xdisplay_);
XEvent xclient;
memset(&xclient, 0, sizeof(xclient));

Powered by Google App Engine
This is Rietveld 408576698