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

Unified Diff: third_party/WebKit/Source/platform/mac/BlockExceptions.mm

Issue 1826733002: Remove ASSERT_WITH_MESSAGE family. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/mac/BlockExceptions.mm
diff --git a/third_party/WebKit/Source/platform/mac/BlockExceptions.mm b/third_party/WebKit/Source/platform/mac/BlockExceptions.mm
index ccecee34e23122b2c94365320a1719ac60351c79..e823c3a8892aeb380f6b8d01a048ab6428812f3c 100644
--- a/third_party/WebKit/Source/platform/mac/BlockExceptions.mm
+++ b/third_party/WebKit/Source/platform/mac/BlockExceptions.mm
@@ -29,8 +29,11 @@
void ReportBlockedObjCException(NSException *exception)
{
-#if ENABLE(ASSERT)
- ASSERT_WITH_MESSAGE(0, "Uncaught exception - %s", [[exception description] UTF8String]);
+#if DCHECK_IS_ON()
+ NOTREACHED() << "Uncaught exception - " << [[exception description] UTF8String];
+ // This function is marked as NO_RETURN_DUE_TO_ASSERT, but NOTREACHED() and
+ // DCHECK(false) are not recognized as NO_RETURN.
+ CRASH();
#else
NSLog(@"*** WebKit discarding exception: <%@> %@", [exception name], [exception reason]);
#endif

Powered by Google App Engine
This is Rietveld 408576698