We'd like to eventually enable android asserts on canary for short amounts of time. However, before doing so, we should make it so that java asserts can produce a crash dump without actually crashing the app (and annoying users).
This would be controlled behind a GN arg: java_assert_dump_and_continue = true.
This should additionally have guards against dumping the for the same assert more than once.
To enable this, we should change:
https://cs.chromium.org/chromium/src/build/android/java_assertion_enabler/
to call a function in base rather than directly throw an exception. The function in base can then choose to throw an exception, or just dump & continue based on the BuildConfig.CONTINUE_AFTER_FAILED_ASSERT value.
Comment 1 by w...@chromium.org
, Dec 9 2016