| 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);
|
|
|