Index: PRESUBMIT.py |
diff --git a/PRESUBMIT.py b/PRESUBMIT.py |
index 8a81bb0babc1d3961b1dfea2fa5894d6ce306bad..64dad0d7f7347a5e4eb59490d864e419cc77ab12 100644 |
--- a/PRESUBMIT.py |
+++ b/PRESUBMIT.py |
@@ -188,6 +188,17 @@ _BANNED_CPP_FUNCTIONS = ( |
r"^gpu[\\\/].*\.cc$", |
), |
), |
+ ( |
+ r'XInternAtom|xcb_intern_atom', |
+ ( |
+ 'Use ui::GetAtom() or ui::X11AtomCache::GetAtom() instead of', |
+ 'interning atoms directly.', |
+ ), |
+ True, |
+ ( |
+ r"^ui[\\\/]gfx[\\\/]x[\\\/]x11_atom_cache\.cc$", |
+ ), |
+ ), |
( |
'ScopedAllowIO', |
( |