Don't send download pings if the download is cancelled

There's a small race condition where, if the download is cancelled
before we send a download ping, when we notify the
IncidentReportingService, we'll fail a DCHECK, since the
IncidentReportingService expects us to only send pings for IN_PROGRESS
or COMPLETED downloads.

Change-Id: If9e5647f2e60f19f0469f51709990ae8226cd5ee
Commit-Queue: Daniel Rubery <>
Reviewed-by: Nathan Parker <>
Cr-Commit-Position: refs/heads/master@{#630043}
2 files changed