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

Unified Diff: Source/modules/webdatabase/DatabaseManager.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/modules/webdatabase/DatabaseManager.cpp
diff --git a/Source/modules/webdatabase/DatabaseManager.cpp b/Source/modules/webdatabase/DatabaseManager.cpp
index 8fee9c592a7cfc0a3215c5c5626a6416f9f8ac41..ffa5cba064ae03d1bb20e5a57ab7e06a8634c5b9 100644
--- a/Source/modules/webdatabase/DatabaseManager.cpp
+++ b/Source/modules/webdatabase/DatabaseManager.cpp
@@ -54,7 +54,7 @@ DatabaseManager& DatabaseManager::manager()
}
DatabaseManager::DatabaseManager()
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
: 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_ENABLED
+#if ENABLE(ASSERT)
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_ENABLED
+#if ENABLE(ASSERT)
m_databaseContextRegisteredCount--;
#endif
m_contextMap.remove(context);
}
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
void DatabaseManager::didConstructDatabaseContext()
{
MutexLocker lock(m_contextMapLock);

Powered by Google App Engine
This is Rietveld 408576698