Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(385)

Unified Diff: content/browser/download/download_item_impl.cc

Issue 2758453003: Recording download mime types for normal profile (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/download/download_request_core.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_);
« no previous file with comments | « no previous file | content/browser/download/download_request_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698