Chromium Code Reviews| 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 f118a476be598052f23acd1ffe392e303b084e39..bbbe7849c218d64c7ec6c2febce17e715268cd4b 100644 |
| --- a/content/browser/download/download_item_impl.cc |
| +++ b/content/browser/download/download_item_impl.cc |
| @@ -1258,6 +1258,12 @@ void DownloadItemImpl::Start( |
| return; |
| } |
| + RecordDownloadMimeType(mime_type_); |
|
shaktisahu
2017/03/16 23:39:49
asanka@ - I moved this from DownloadRequestCore::O
asanka
2017/03/17 15:19:27
This is fine. The early return at DownloadResource
|
| + if (GetWebContents() && |
| + !GetWebContents()->GetBrowserContext()->IsOffTheRecord()) { |
| + RecordDownloadMimeTypeForNormalProfile(mime_type_); |
| + } |
| + |
| // Successful download start. |
| DCHECK(download_file_); |
| DCHECK(job_); |