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

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

Issue 2288473002: Implement Dump-on-DCHECK (via a new LogSeverity). (Closed)
Patch Set: Pull the Official Windows build default in, and rebase Created 3 years, 10 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
« no previous file with comments | « build/config/dcheck_always_on.gni ('k') | third_party/WebKit/Source/wtf/AssertionsTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/Assertions.h
diff --git a/third_party/WebKit/Source/wtf/Assertions.h b/third_party/WebKit/Source/wtf/Assertions.h
index 4f9b24e207fa15ac027127735d79f10fbdd3ae06..44d98b1a1c352e3a0620c0197c9da2d5c2c8cf2e 100644
--- a/third_party/WebKit/Source/wtf/Assertions.h
+++ b/third_party/WebKit/Source/wtf/Assertions.h
@@ -134,9 +134,10 @@ class WTF_EXPORT ScopedLogger {
#undef ASSERT
#endif
-#define DCHECK_AT(assertion, file, line) \
- LAZY_STREAM(logging::LogMessage(file, line, #assertion).stream(), \
- DCHECK_IS_ON() ? !(assertion) : false)
+#define DCHECK_AT(assertion, file, line) \
+ LAZY_STREAM(logging::LogMessage(file, line, logging::LOG_DCHECK).stream(), \
+ DCHECK_IS_ON() ? !(assertion) : false) \
+ << "Check failed: " #assertion ". "
#if DCHECK_IS_ON()
#define ASSERT(assertion) DCHECK(assertion)
« no previous file with comments | « build/config/dcheck_always_on.gni ('k') | third_party/WebKit/Source/wtf/AssertionsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698