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

Unified Diff: third_party/WebKit/Source/core/dom/WeakIdentifierMap.h

Issue 2694283003: Annotate ScriptWrappable-embedding singletons.
Patch Set: add XPathValue singleton Created 3 years, 10 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: third_party/WebKit/Source/core/dom/WeakIdentifierMap.h
diff --git a/third_party/WebKit/Source/core/dom/WeakIdentifierMap.h b/third_party/WebKit/Source/core/dom/WeakIdentifierMap.h
index 4eae8473f2639782fc829c04bcca8f29b2c1d7a4..005194e9ec49147137f065fe50af8eb06f84af5e 100644
--- a/third_party/WebKit/Source/core/dom/WeakIdentifierMap.h
+++ b/third_party/WebKit/Source/core/dom/WeakIdentifierMap.h
@@ -102,6 +102,7 @@ class WeakIdentifierMap final
WeakIdentifierMap<T, ##__VA_ARGS__>& \
WeakIdentifierMap<T, ##__VA_ARGS__>::instance() { \
using RefType = WeakIdentifierMap<T, ##__VA_ARGS__>; \
+ ALLOW_UNSAFE_SINGLETON() \
DEFINE_STATIC_LOCAL(RefType, mapInstance, \
(new WeakIdentifierMap<T, ##__VA_ARGS__>())); \
return mapInstance; \

Powered by Google App Engine
This is Rietveld 408576698