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

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

Issue 2288473002: Implement Dump-on-DCHECK (via a new LogSeverity). (Closed)
Patch Set: Break out sub-component CLs 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/wtf/Assertions.h
diff --git a/third_party/WebKit/Source/wtf/Assertions.h b/third_party/WebKit/Source/wtf/Assertions.h
index 5904187a0edcdce13d2eca73177f41d6029ecfcb..5915127c05c28a7af39c99be24218598b08fac0b 100644
--- a/third_party/WebKit/Source/wtf/Assertions.h
+++ b/third_party/WebKit/Source/wtf/Assertions.h
@@ -148,9 +148,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 ENABLE(ASSERT)
#define ASSERT(assertion) DCHECK(assertion)

Powered by Google App Engine
This is Rietveld 408576698