crash_sender: re-order send_crashes() logic

send_crashes() is re-ordered to make sure that crashes are
deleted at the earliest possible point in time, especially that
crash deleting cannot be blocked if the crash upload pipeline is
blocked for some reason.  The intention is to free disk space as
soon as possible, but there are also privacy implications of
removing crash data as soon as it is determined that the user has
not consented to its upload.

TEST=`cbuildbot x86-generic-full` passes

Change-Id: I797cf8430185b0d2a4c3e615c6803e95b59c8ac7
Tested-by: Mike Frysinger <>
Reviewed-by: Ben Chan <>
Commit-Queue: Mike Frysinger <>
1 file changed
tree: 6c36623a2c4aa6be156e667605821dd9ce1b4912
  1. crash_reporter/