Index: content/browser/download/download_item_impl.cc |
diff --git a/content/browser/download/download_item_impl.cc b/content/browser/download/download_item_impl.cc |
index fb6ff4a01339ddf4acc7ed3bbd155e1603e2a7e6..eed60c8672a31a70c12dce50be3f58380c15a969 100644 |
--- a/content/browser/download/download_item_impl.cc |
+++ b/content/browser/download/download_item_impl.cc |
@@ -1216,6 +1216,9 @@ void DownloadItemImpl::Start( |
download_file_ = std::move(file); |
job_ = DownloadJobFactory::CreateJob(this, std::move(req_handle), |
new_create_info); |
+ if (job_->UsesParallelRequests()) |
+ RecordParallelDownloadCount(START_COUNT); |
+ |
deferred_interrupt_reason_ = DOWNLOAD_INTERRUPT_REASON_NONE; |
if (state_ == CANCELLED_INTERNAL) { |
@@ -1265,6 +1268,8 @@ void DownloadItemImpl::Start( |
if (state_ == INITIAL_INTERNAL) { |
RecordDownloadCount(NEW_DOWNLOAD_COUNT); |
+ if (job_->UsesParallelRequests()) |
+ RecordParallelDownloadCount(NEW_DOWNLOAD_COUNT); |
RecordDownloadMimeType(mime_type_); |
if (!GetBrowserContext()->IsOffTheRecord()) { |
RecordDownloadCount(NEW_DOWNLOAD_COUNT_NORMAL_PROFILE); |
@@ -1279,9 +1284,6 @@ void DownloadItemImpl::Start( |
if (state_ == RESUMING_INTERNAL) |
UpdateValidatorsOnResumption(new_create_info); |
- if (state_ == INITIAL_INTERNAL && job_->UsesParallelRequests()) |
- RecordParallelDownloadCount(START_COUNT); |
- |
TransitionTo(TARGET_PENDING_INTERNAL); |
job_->Start(); |