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

Unified Diff: ui/events/platform/x11/x11_event_source.cc

Issue 2914103002: Remove usages of XInternAtom (Closed)
Patch Set: Address sadrul and sergeyu comments Created 3 years, 7 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: ui/events/platform/x11/x11_event_source.cc
diff --git a/ui/events/platform/x11/x11_event_source.cc b/ui/events/platform/x11/x11_event_source.cc
index f8bbaeb4d0b2e35173f0d5734d52baf1e7b3ef0e..6f2d835624c88cc6fedcf920913ff101d64ba213 100644
--- a/ui/events/platform/x11/x11_event_source.cc
+++ b/ui/events/platform/x11/x11_event_source.cc
@@ -16,6 +16,7 @@
#include "ui/events/event_utils.h"
#include "ui/events/platform/platform_event_dispatcher.h"
#include "ui/events/platform/x11/x11_hotplug_event_handler.h"
+#include "ui/gfx/x/x11_atom_cache.h"
namespace ui {
@@ -156,7 +157,7 @@ Time X11EventSource::GetCurrentServerTime() {
// Create a new Window and Atom that will be used for the property change.
dummy_window_ = XCreateSimpleWindow(display_, DefaultRootWindow(display_),
0, 0, 1, 1, 0, 0, 0);
- dummy_atom_ = XInternAtom(display_, "CHROMIUM_TIMESTAMP", False);
+ dummy_atom_ = X11AtomCache::GetInstance()->GetAtom("CHROMIUM_TIMESTAMP");
dummy_window_events_.reset(
new XScopedEventSelector(dummy_window_, PropertyChangeMask));
dummy_initialized_ = true;
« no previous file with comments | « ui/events/devices/x11/device_data_manager_x11.cc ('k') | ui/events/platform/x11/x11_hotplug_event_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698