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