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

Unified Diff: ui/gfx/x/x11_atom_cache.cc

Issue 2924343002: Move ui::GetAtom to gfx::GetAtom (Closed)
Patch Set: fix CrOs build Created 3 years, 6 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
« no previous file with comments | « ui/gfx/x/x11_atom_cache.h ('k') | ui/platform_window/x11/x11_window_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/x/x11_atom_cache.cc
diff --git a/ui/gfx/x/x11_atom_cache.cc b/ui/gfx/x/x11_atom_cache.cc
index a5ce80923eb183b1d1c1f1fbd9dc2b51810e1adf..893d6ad8bbf38cada00b641677f3a50c6a447f50 100644
--- a/ui/gfx/x/x11_atom_cache.cc
+++ b/ui/gfx/x/x11_atom_cache.cc
@@ -156,7 +156,11 @@ const char* kAtomsToCache[] = {"Abs Dbl End Timestamp",
} // namespace
-namespace ui {
+namespace gfx {
+
+XAtom GetAtom(const char* name) {
+ return X11AtomCache::GetInstance()->GetAtom(name);
+}
X11AtomCache* X11AtomCache::GetInstance() {
return base::Singleton<X11AtomCache>::get();
@@ -191,4 +195,4 @@ XAtom X11AtomCache::GetAtom(const char* name) const {
return it->second;
}
-} // namespace ui
+} // namespace gfx
« no previous file with comments | « ui/gfx/x/x11_atom_cache.h ('k') | ui/platform_window/x11/x11_window_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698