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

Unified Diff: third_party/WebKit/Source/platform/wtf/Assertions.h

Issue 2968713002: Remove all uses of LOG_DISABLED in blink (Closed)
Patch Set: Created 3 years, 6 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/platform/wtf/Assertions.h
diff --git a/third_party/WebKit/Source/platform/wtf/Assertions.h b/third_party/WebKit/Source/platform/wtf/Assertions.h
index 528d2751fe55994b950fdac9c80ff79140f740d1..cb506e514184db9a461f5f5710ddf0d1be4d086c 100644
--- a/third_party/WebKit/Source/platform/wtf/Assertions.h
+++ b/third_party/WebKit/Source/platform/wtf/Assertions.h
@@ -43,17 +43,13 @@
#include <windows.h>
#endif
-#ifndef LOG_DISABLED
-#define LOG_DISABLED !DCHECK_IS_ON()
-#endif
-
// WTFLogAlways() is deprecated. crbug.com/638849
WTF_EXPORT PRINTF_FORMAT(1, 2) // NOLINT
void WTFLogAlways(const char* format, ...);
namespace WTF {
-#if LOG_DISABLED
+#if !DCHECK_IS_ON()
#define WTF_CREATE_SCOPED_LOGGER(...) ((void)0)
#define WTF_CREATE_SCOPED_LOGGER_IF(...) ((void)0)
@@ -105,7 +101,7 @@ class WTF_EXPORT ScopedLogger {
WTF::ScopedLogger name(condition, __VA_ARGS__)
#define WTF_APPEND_SCOPED_LOGGER(name, ...) (name.Log(__VA_ARGS__))
-#endif // LOG_DISABLED
+#endif // !DCHECK_IS_ON()
} // namespace WTF
« no previous file with comments | « third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp ('k') | third_party/WebKit/Source/platform/wtf/Assertions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698