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

Unified Diff: Source/web/WebScopedMicrotaskSuppression.cpp

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/platform/weborigin/KnownPorts.cpp ('k') | Source/wtf/Assertions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebScopedMicrotaskSuppression.cpp
diff --git a/Source/web/WebScopedMicrotaskSuppression.cpp b/Source/web/WebScopedMicrotaskSuppression.cpp
index 3a103e232a4ab2b6edcc09e8d5f551161372e2fd..31a1fd01d9b2b0b5b95f94215b6b3b268221a9a4 100644
--- a/Source/web/WebScopedMicrotaskSuppression.cpp
+++ b/Source/web/WebScopedMicrotaskSuppression.cpp
@@ -32,11 +32,12 @@
#include "public/web/WebScopedMicrotaskSuppression.h"
#include "bindings/core/v8/V8RecursionScope.h"
+#include "wtf/Assertions.h"
#include "wtf/OwnPtr.h"
namespace blink {
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
class WebScopedMicrotaskSuppression::Impl : public WebCore::V8RecursionScope::MicrotaskSuppression {
public:
Impl(v8::Isolate* isolate)
@@ -48,14 +49,14 @@ public:
void WebScopedMicrotaskSuppression::initialize()
{
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
m_impl.reset(new Impl(v8::Isolate::GetCurrent()));
#endif
}
void WebScopedMicrotaskSuppression::reset()
{
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
m_impl.reset(0);
#endif
}
« no previous file with comments | « Source/platform/weborigin/KnownPorts.cpp ('k') | Source/wtf/Assertions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698