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

Unified Diff: base/threading/thread_restrictions.cc

Issue 2163023002: Unify usage of logging/assert macros in base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: oops commit on wrong branch Created 4 years, 5 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: base/threading/thread_restrictions.cc
diff --git a/base/threading/thread_restrictions.cc b/base/threading/thread_restrictions.cc
index 00306c5ae7d6c8ea17fcc2170b08b11c15d257ce..5cf14450a47f8415379cf3d449f4c95ed625d992 100644
--- a/base/threading/thread_restrictions.cc
+++ b/base/threading/thread_restrictions.cc
@@ -4,7 +4,7 @@
#include "base/threading/thread_restrictions.h"
-#if ENABLE_THREAD_RESTRICTIONS
+#if DCHECK_IS_ON()
#include "base/lazy_instance.h"
#include "base/logging.h"
@@ -82,4 +82,4 @@ bool ThreadRestrictions::SetWaitAllowed(bool allowed) {
} // namespace base
-#endif // ENABLE_THREAD_RESTRICTIONS
+#endif // DCHECK_IS_ON()

Powered by Google App Engine
This is Rietveld 408576698