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

Unified Diff: Source/wtf/RefCounted.h

Issue 394353002: Replace tests of ASSERT_ENABLED with ENABLE(ASSERT). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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: Source/wtf/RefCounted.h
diff --git a/Source/wtf/RefCounted.h b/Source/wtf/RefCounted.h
index 2e248d90d529d5a73b8cf925fc340e00d3c1a76e..9f2a6e83efc5d49f7e6e79913fcc9eb0e42ba57b 100644
--- a/Source/wtf/RefCounted.h
+++ b/Source/wtf/RefCounted.h
@@ -82,7 +82,7 @@ public:
protected:
RefCountedBase()
: m_refCount(1)
-#if SECURITY_ASSERT_ENABLED
+#if ENABLE(SECURITY_ASSERT)
, m_deletionHasBegun(false)
#endif
#if CHECK_REF_COUNTED_LIFECYCLE
@@ -111,7 +111,7 @@ protected:
ASSERT(m_refCount > 0);
--m_refCount;
if (!m_refCount) {
-#if SECURITY_ASSERT_ENABLED
+#if ENABLE(SECURITY_ASSERT)
m_deletionHasBegun = true;
#endif
return true;
@@ -135,12 +135,12 @@ protected:
private:
-#if CHECK_REF_COUNTED_LIFECYCLE || SECURITY_ASSERT_ENABLED
+#if CHECK_REF_COUNTED_LIFECYCLE || ENABLE(SECURITY_ASSERT)
friend void adopted(RefCountedBase*);
#endif
int m_refCount;
-#if SECURITY_ASSERT_ENABLED
+#if ENABLE(SECURITY_ASSERT)
bool m_deletionHasBegun;
#endif
#if CHECK_REF_COUNTED_LIFECYCLE
@@ -149,7 +149,7 @@ private:
#endif
};
-#if CHECK_REF_COUNTED_LIFECYCLE || SECURITY_ASSERT_ENABLED
+#if CHECK_REF_COUNTED_LIFECYCLE || ENABLE(SECURITY_ASSERT)
inline void adopted(RefCountedBase* object)
{
if (!object)

Powered by Google App Engine
This is Rietveld 408576698