When a null callback is posted to a PostTask implementation, it hits a DCHECK and eventually causes a crash by a null pointer access.
However, when the crash happened in the wild, it's less informative and actionable since the stack of the culprit is already gone on the null pointer access.
Though we can track where the null callback is posted from by a local variable of TaskAnnotator, it's a few step away from the crash report, and annoying to extract.
So, the check in the PostTask implementations should be CHECK instead of DCHECK, so that the triage of that sort of crash should get smoother.
Comment 1 by bugdroid1@chromium.org
, Apr 13 2017