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

Unified Diff: ui/display/util/x11/edid_parser_x11.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/display/util/x11/edid_parser_x11.cc
diff --git a/ui/display/util/x11/edid_parser_x11.cc b/ui/display/util/x11/edid_parser_x11.cc
index c7d8e595d543b602564ea514e5575a069feaa150..a39470869595eca312e9368f1e125144be6f7ea8 100644
--- a/ui/display/util/x11/edid_parser_x11.cc
+++ b/ui/display/util/x11/edid_parser_x11.cc
@@ -10,6 +10,7 @@
#include "base/strings/string_util.h"
#include "ui/display/util/edid_parser.h"
+#include "ui/gfx/x/x11_atom_cache.h"
#include "ui/gfx/x/x11_types.h"
namespace display {
@@ -33,9 +34,8 @@ bool GetEDIDProperty(XID output, std::vector<uint8_t>* edid) {
Display* display = gfx::GetXDisplay();
- static Atom edid_property = XInternAtom(
- gfx::GetXDisplay(),
- RR_PROPERTY_RANDR_EDID, false);
+ static Atom edid_property =
+ ui::X11AtomCache::GetInstance()->GetAtom(RR_PROPERTY_RANDR_EDID);
bool has_edid_property = false;
int num_properties = 0;
« no previous file with comments | « ui/display/manager/chromeos/x11/native_display_delegate_x11.cc ('k') | ui/events/devices/x11/device_data_manager_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698