| Index: ui/base/x/x11_util.cc
|
| diff --git a/ui/base/x/x11_util.cc b/ui/base/x/x11_util.cc
|
| index ac97549095a73119242c053604ca47bfc4f8082a..3d733ddf1d65b67023715d4da761b8680c403b93 100644
|
| --- a/ui/base/x/x11_util.cc
|
| +++ b/ui/base/x/x11_util.cc
|
| @@ -119,14 +119,14 @@ class XCursorCache {
|
| std::pair<std::map<int, ::Cursor>::iterator, bool> it = cache_.insert(
|
| std::make_pair(cursor_shape, 0));
|
| if (it.second) {
|
| - XDisplay* display = base::MessagePumpForUI::GetDefaultXDisplay();
|
| + XDisplay* display = gfx::GetXDisplay();
|
| it.first->second = XCreateFontCursor(display, cursor_shape);
|
| }
|
| return it.first->second;
|
| }
|
|
|
| void Clear() {
|
| - XDisplay* display = base::MessagePumpForUI::GetDefaultXDisplay();
|
| + XDisplay* display = gfx::GetXDisplay();
|
| for (std::map<int, ::Cursor>::iterator it =
|
| cache_.begin(); it != cache_.end(); ++it) {
|
| XFreeCursor(display, it->second);
|
|
|