| 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++;
|
| }
|
|
|