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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerThread.cpp

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: 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 eb572eff34db569afc2c8edf7ebc06ccab518874..15e50d128790eb77e981892dafd3fbe93ceba5d9 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThread.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
@@ -645,8 +645,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