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

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

Issue 327323002: Start removing the double-negative !ASSERT_DISABLED (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/core/frame/SuspendableTimer.h ('k') | Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/SuspendableTimer.cpp
diff --git a/Source/core/frame/SuspendableTimer.cpp b/Source/core/frame/SuspendableTimer.cpp
index 98ca63574d3461819af9ddce94226268573a26c8..afbf6275677cb18a166a5be43f9b8cd4ad6aee57 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_DISABLED
+#if ASSERT_ENABLED
, m_suspended(false)
#endif
{
@@ -56,7 +56,7 @@ void SuspendableTimer::stop()
void SuspendableTimer::suspend()
{
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
ASSERT(!m_suspended);
m_suspended = true;
#endif
@@ -70,7 +70,7 @@ void SuspendableTimer::suspend()
void SuspendableTimer::resume()
{
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
ASSERT(m_suspended);
m_suspended = false;
#endif
« no previous file with comments | « Source/core/frame/SuspendableTimer.h ('k') | Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698