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

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

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.h
diff --git a/third_party/WebKit/Source/modules/webdatabase/DatabaseManager.h b/third_party/WebKit/Source/modules/webdatabase/DatabaseManager.h
index 165d461786e983a777e2d61aac94eba6345a3427..65ee92b581df1f12e8d2d5b636a1e68eed85be5e 100644
--- a/third_party/WebKit/Source/modules/webdatabase/DatabaseManager.h
+++ b/third_party/WebKit/Source/modules/webdatabase/DatabaseManager.h
@@ -55,7 +55,7 @@ class DatabaseManager {
void registerDatabaseContext(DatabaseContext*);
void unregisterDatabaseContext(DatabaseContext*);
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
void didConstructDatabaseContext();
void didDestructDatabaseContext();
#else
@@ -109,9 +109,9 @@ class DatabaseManager {
Member<DatabaseContext>>
ContextMap;
ContextMap m_contextMap;
-#if ENABLE(ASSERT)
- int m_databaseContextRegisteredCount;
- int m_databaseContextInstanceCount;
+#if DCHECK_IS_ON()
+ int m_databaseContextRegisteredCount = 0;
+ int m_databaseContextInstanceCount = 0;
#endif
};

Powered by Google App Engine
This is Rietveld 408576698