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

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

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.cpp
diff --git a/third_party/WebKit/Source/platform/wtf/Assertions.cpp b/third_party/WebKit/Source/platform/wtf/Assertions.cpp
index 20c783cac66557f654fae0d3fd80dea3b6d45c81..0232f67115414708449f0719878f2c398ee4a30f 100644
--- a/third_party/WebKit/Source/platform/wtf/Assertions.cpp
+++ b/third_party/WebKit/Source/platform/wtf/Assertions.cpp
@@ -128,7 +128,7 @@ static void vprintf_stderr_with_trailing_newline(const char* format,
#pragma GCC diagnostic pop
#endif
-#if !LOG_DISABLED
+#if DCHECK_IS_ON()
namespace WTF {
ScopedLogger::ScopedLogger(bool condition, const char* format, ...)
@@ -216,7 +216,7 @@ ScopedLogger::PrintFunctionPtr ScopedLogger::print_func_ =
vprintf_stderr_common;
} // namespace WTF
-#endif // !LOG_DISABLED
+#endif // DCHECK_IS_ON
void WTFLogAlways(const char* format, ...) {
va_list args;
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/Assertions.h ('k') | third_party/WebKit/Source/platform/wtf/AssertionsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698