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

Unified Diff: Source/core/frame/SuspendableTimer.cpp

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/core/frame/SuspendableTimer.cpp
diff --git a/Source/core/frame/SuspendableTimer.cpp b/Source/core/frame/SuspendableTimer.cpp
index afbf6275677cb18a166a5be43f9b8cd4ad6aee57..ce7b9a9f52a931ad1fbcedceebe7f55ecac9ad8d 100644
--- a/Source/core/frame/SuspendableTimer.cpp
+++ b/Source/core/frame/SuspendableTimer.cpp
@@ -34,7 +34,7 @@ SuspendableTimer::SuspendableTimer(ExecutionContext* context)
, m_nextFireInterval(0)
, m_repeatInterval(0)
, m_active(false)
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
, m_suspended(false)
#endif
{
@@ -56,7 +56,7 @@ void SuspendableTimer::stop()
void SuspendableTimer::suspend()
{
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
ASSERT(!m_suspended);
m_suspended = true;
#endif
@@ -70,7 +70,7 @@ void SuspendableTimer::suspend()
void SuspendableTimer::resume()
{
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
ASSERT(m_suspended);
m_suspended = false;
#endif

Powered by Google App Engine
This is Rietveld 408576698