| Index: content/browser/download/download_stats.cc
|
| diff --git a/content/browser/download/download_stats.cc b/content/browser/download/download_stats.cc
|
| index 66716cac415d555be3af8e34fe8e437c8f137702..b508970cb319c99f05fa10d6582e8044e23c62ce 100644
|
| --- a/content/browser/download/download_stats.cc
|
| +++ b/content/browser/download/download_stats.cc
|
| @@ -611,6 +611,20 @@ void RecordFileBandwidth(size_t length,
|
| disk_write_time_ms * 100 / elapsed_time_ms);
|
| }
|
|
|
| +void RecordDownloadFileRenameResult(base::TimeTicks time_of_first_failure,
|
| + DownloadInterruptReason interrupt_reason) {
|
| + if (time_of_first_failure.is_null())
|
| + return;
|
| + base::TimeDelta interval = time_of_first_failure - base::TimeTicks::Now();
|
| + if (interrupt_reason == DOWNLOAD_INTERRUPT_REASON_NONE) {
|
| + UMA_HISTOGRAM_TIMES("Download.TimeToRenameSuccessAfterInitialFailure",
|
| + interval);
|
| + } else {
|
| + UMA_HISTOGRAM_TIMES("Download.TimeToRenameFailureAfterInitialFailure",
|
| + interval);
|
| + }
|
| +}
|
| +
|
| void RecordSavePackageEvent(SavePackageEvent event) {
|
| UMA_HISTOGRAM_ENUMERATION("Download.SavePackage",
|
| event,
|
|
|