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
Reviewed-on: https://chromium-review.googlesource.com/c/1457672
Commit-Queue: Daniel Rubery <drubery@chromium.org>
Reviewed-by: Nathan Parker <nparker@chromium.org>
Cr-Commit-Position: refs/heads/master@{#630043}
2 files changed