| Index: ui/base/x/x11_util.cc
|
| diff --git a/ui/base/x/x11_util.cc b/ui/base/x/x11_util.cc
|
| index 0f16be757fce16972293f97ffa27d09c5d9c7922..db005b6defad96ee09b74e27ab7d1862ebcc474d 100644
|
| --- a/ui/base/x/x11_util.cc
|
| +++ b/ui/base/x/x11_util.cc
|
| @@ -144,14 +144,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);
|
|
|