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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/DatabaseManager.cpp

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: m_domTreeVersion initialization Created 3 years, 11 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: third_party/WebKit/Source/modules/webdatabase/DatabaseManager.cpp
diff --git a/third_party/WebKit/Source/modules/webdatabase/DatabaseManager.cpp b/third_party/WebKit/Source/modules/webdatabase/DatabaseManager.cpp
index d019b7d066725de1b586ba11c0770ccf47d07d21..abab2e2bc0b375d63ffdd3e88d83e4b72c34a700 100644
--- a/third_party/WebKit/Source/modules/webdatabase/DatabaseManager.cpp
+++ b/third_party/WebKit/Source/modules/webdatabase/DatabaseManager.cpp
@@ -64,10 +64,6 @@ void DatabaseManager::terminateDatabaseThread() {
}
DatabaseManager::DatabaseManager()
-#if ENABLE(ASSERT)
- : m_databaseContextRegisteredCount(0),
- m_databaseContextInstanceCount(0)
-#endif
{
}
@@ -98,7 +94,7 @@ void DatabaseManager::registerDatabaseContext(
DatabaseContext* databaseContext) {
ExecutionContext* context = databaseContext->getExecutionContext();
m_contextMap.set(context, databaseContext);
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
m_databaseContextRegisteredCount++;
#endif
}
@@ -107,13 +103,13 @@ void DatabaseManager::unregisterDatabaseContext(
DatabaseContext* databaseContext) {
ExecutionContext* context = databaseContext->getExecutionContext();
ASSERT(m_contextMap.get(context));
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
m_databaseContextRegisteredCount--;
#endif
m_contextMap.remove(context);
}
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
void DatabaseManager::didConstructDatabaseContext() {
m_databaseContextInstanceCount++;
}

Powered by Google App Engine
This is Rietveld 408576698