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

Unified Diff: Source/wtf/ThreadRestrictionVerifier.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/wtf/ThreadRestrictionVerifier.h
diff --git a/Source/wtf/ThreadRestrictionVerifier.h b/Source/wtf/ThreadRestrictionVerifier.h
index e62261ca7429c3b954d8402fcfb28242e6821a0e..c8f8437e08e51a4d5155b2eca5c9aa158a6b6ac6 100644
--- a/Source/wtf/ThreadRestrictionVerifier.h
+++ b/Source/wtf/ThreadRestrictionVerifier.h
@@ -31,9 +31,10 @@
#ifndef ThreadRestrictionVerifier_h
#define ThreadRestrictionVerifier_h
-#ifndef NDEBUG
-
#include "wtf/Assertions.h"
+
+#if ENABLE(ASSERT)
+
#include "wtf/Threading.h"
namespace WTF {
@@ -53,9 +54,7 @@ public:
// Indicates that the object may (or may not) be owned by more than one place.
void setShared(bool shared)
{
-#if ASSERT_ENABLED
Ken Russell (switch to Gerrit) 2014/07/15 23:25:35 This entire file was essentially guarded under ASS
bool previouslyShared = m_shared;
-#endif
m_shared = shared;
if (!m_shared)

Powered by Google App Engine
This is Rietveld 408576698