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

Unified Diff: Source/modules/webdatabase/DatabaseManager.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/modules/webdatabase/DatabaseManager.h ('k') | Source/platform/Supplementable.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webdatabase/DatabaseManager.cpp
diff --git a/Source/modules/webdatabase/DatabaseManager.cpp b/Source/modules/webdatabase/DatabaseManager.cpp
index 78042ec8595756bc7cbe6fe334e32294c45a7b5e..fbadafa8f0738088f69eab2736e171c686bcd221 100644
--- a/Source/modules/webdatabase/DatabaseManager.cpp
+++ b/Source/modules/webdatabase/DatabaseManager.cpp
@@ -54,7 +54,7 @@ DatabaseManager& DatabaseManager::manager()
}
DatabaseManager::DatabaseManager()
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
: m_databaseContextRegisteredCount(0)
, m_databaseContextInstanceCount(0)
#endif
@@ -124,7 +124,7 @@ void DatabaseManager::registerDatabaseContext(DatabaseContext* databaseContext)
#else
m_contextMap.set(context, databaseContext);
#endif
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
m_databaseContextRegisteredCount++;
#endif
}
@@ -134,13 +134,13 @@ void DatabaseManager::unregisterDatabaseContext(DatabaseContext* databaseContext
MutexLocker locker(m_contextMapLock);
ExecutionContext* context = databaseContext->executionContext();
ASSERT(m_contextMap.get(context));
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
m_databaseContextRegisteredCount--;
#endif
m_contextMap.remove(context);
}
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
void DatabaseManager::didConstructDatabaseContext()
{
MutexLocker lock(m_contextMapLock);
« no previous file with comments | « Source/modules/webdatabase/DatabaseManager.h ('k') | Source/platform/Supplementable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698