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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/DatabaseThread.cpp

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/DatabaseThread.cpp
diff --git a/third_party/WebKit/Source/modules/webdatabase/DatabaseThread.cpp b/third_party/WebKit/Source/modules/webdatabase/DatabaseThread.cpp
index ab29b40c08e676afc36a42dcaf9a0f2fda666787..c928b63534947389ba496e14a0375fa2c21219ee 100644
--- a/third_party/WebKit/Source/modules/webdatabase/DatabaseThread.cpp
+++ b/third_party/WebKit/Source/modules/webdatabase/DatabaseThread.cpp
@@ -138,7 +138,7 @@ void DatabaseThread::recordDatabaseOpen(Database* database) {
void DatabaseThread::recordDatabaseClosed(Database* database) {
ASSERT(isDatabaseThread());
ASSERT(database);
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
{
MutexLocker lock(m_terminationRequestedMutex);
ASSERT(m_terminationRequested || m_openDatabaseSet.contains(database));
@@ -162,7 +162,7 @@ bool DatabaseThread::isDatabaseThread() const {
void DatabaseThread::scheduleTask(std::unique_ptr<DatabaseTask> task) {
ASSERT(m_thread);
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
{
MutexLocker lock(m_terminationRequestedMutex);
ASSERT(!m_terminationRequested);

Powered by Google App Engine
This is Rietveld 408576698