Index: ash/host/ash_window_tree_host_x11.cc |
diff --git a/ash/host/ash_window_tree_host_x11.cc b/ash/host/ash_window_tree_host_x11.cc |
index 73efb44b96602b3f7322edb05423962a757f9193..68d864a4c68f66bd14eb8f8af7bd3f2c467baf8a 100644 |
--- a/ash/host/ash_window_tree_host_x11.cc |
+++ b/ash/host/ash_window_tree_host_x11.cc |
@@ -30,6 +30,7 @@ |
#include "ui/events/null_event_targeter.h" |
#include "ui/events/platform/platform_event_source.h" |
#include "ui/gfx/geometry/rect.h" |
+#include "ui/gfx/x/x11_atom_cache.h" |
namespace ash { |
@@ -216,7 +217,7 @@ void AshWindowTreeHostX11::SetCrOSTapPaused(bool state) { |
if (!ui::IsXInput2Available()) |
return; |
// Temporarily pause tap-to-click when the cursor is hidden. |
- Atom prop = atom_cache()->GetAtom("Tap Paused"); |
+ Atom prop = ui::X11AtomCache::GetInstance()->GetAtom("Tap Paused"); |
unsigned char value = state; |
const XIDeviceList& dev_list = |
ui::DeviceListCacheX11::GetInstance()->GetXI2DeviceList(xdisplay()); |