mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-20 08:51:04 +00:00

mTelemetryProvider might be empty if |CancelUpdate| is called during update. In that scenario, the call flow will look like: CancelUpdate -> UpdateError -> DownloadDone -> set mTelemetryProvider to empty -> OnStartRequest -> record telemetry with empty key. So in this patch, move mTelemetryProvider.Truncate() to OnStopRequest. MozReview-Commit-ID: JDgNUqR4SKa --HG-- extra : rebase_source : 42aa4c898f403a1189e67e355246ebed5aa4af44