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

Unified Diff: Source/platform/Supplementable.h

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed config.gni. Minor cleanups. 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/platform/Supplementable.h
diff --git a/Source/platform/Supplementable.h b/Source/platform/Supplementable.h
index aa7322710921d265d17a67276f4b8d928403b1dd..eac9f5e9f8adae336a47a7e2f7c0b2873230f00d 100644
--- a/Source/platform/Supplementable.h
+++ b/Source/platform/Supplementable.h
@@ -32,7 +32,7 @@
#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
#include "wtf/Threading.h"
#endif
@@ -124,7 +124,7 @@ public:
template<typename T, bool isGarbageCollected = false>
class SupplementBase : public SupplementTracing<isGarbageCollected> {
public:
-#if SECURITY_ASSERT_ENABLED
+#if ENABLE(SECURITY_ASSERT)
virtual bool isRefCountedWrapper() const { return false; }
#endif
@@ -183,7 +183,7 @@ public:
void reattachThread()
{
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
m_threadId = currentThread();
#endif
}
@@ -202,7 +202,7 @@ protected:
GC_PLUGIN_IGNORE("")
typename SupplementableTraits<T, isGarbageCollected>::SupplementMap m_supplements;
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
protected:
SupplementableBase() : m_threadId(currentThread()) { }

Powered by Google App Engine
This is Rietveld 408576698