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

Unified Diff: Source/wtf/WeakPtr.h

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. 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
« no previous file with comments | « Source/wtf/WTF.cpp ('k') | Source/wtf/dtoa/cached-powers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/WeakPtr.h
diff --git a/Source/wtf/WeakPtr.h b/Source/wtf/WeakPtr.h
index f81e122cebcf4e88f935756a62bde026819a7768..3f8ddca3ee0f94664f4071f542c8c9c4b38483f1 100644
--- a/Source/wtf/WeakPtr.h
+++ b/Source/wtf/WeakPtr.h
@@ -57,7 +57,7 @@ public:
void bindTo(T* ptr)
{
ASSERT(!m_ptr);
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
m_boundThread = currentThread();
#endif
m_ptr = ptr;
@@ -68,14 +68,14 @@ private:
explicit WeakReference(T* ptr)
: m_ptr(ptr)
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
, m_boundThread(currentThread())
#endif
{
}
T* m_ptr;
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
ThreadIdentifier m_boundThread;
#endif
};
« no previous file with comments | « Source/wtf/WTF.cpp ('k') | Source/wtf/dtoa/cached-powers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698