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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerThread.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/core/workers/WorkerThread.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerThread.cpp b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
index 6b9fdb892abd266bb2abf9029b819d9dcde32864..56fd9be0ed358a3d1f3fa65a4de8828ed0f906f7 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThread.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
@@ -636,8 +636,8 @@ void WorkerThread::setExitCode(const MutexLocker& lock, ExitCode exitCode) {
}
bool WorkerThread::isThreadStateMutexLocked(const MutexLocker& /* unused */) {
-#if ENABLE(ASSERT)
- // Mutex::locked() is available only if ENABLE(ASSERT) is true.
+#if DCHECK_IS_ON()
+ // Mutex::locked() is available only if DCHECK_IS_ON() is true.
return m_threadStateMutex.locked();
#else
// Otherwise, believe the given MutexLocker holds |m_threadStateMutex|.

Powered by Google App Engine
This is Rietveld 408576698