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

Unified Diff: chrome/browser/ntp_snippets/download_suggestions_provider.cc

Issue 2737723002: Downloads : Last access time update for NTP, duplicate infobar and notifications (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
Index: chrome/browser/ntp_snippets/download_suggestions_provider.cc
diff --git a/chrome/browser/ntp_snippets/download_suggestions_provider.cc b/chrome/browser/ntp_snippets/download_suggestions_provider.cc
index 9d38a9e4cb776e4433bce6264c9fe247d9972901..58dab7dd84ad9e57d6ec26a8002ccdd407e9ccaa 100644
--- a/chrome/browser/ntp_snippets/download_suggestions_provider.cc
+++ b/chrome/browser/ntp_snippets/download_suggestions_provider.cc
@@ -617,6 +617,7 @@ ContentSuggestion DownloadSuggestionsProvider::ConvertDownloadItem(
suggestion.set_publisher_name(
base::UTF8ToUTF16(download_item.GetURL().host()));
auto extra = base::MakeUnique<ntp_snippets::DownloadSuggestionExtra>();
+ extra->download_guid = download_item.GetGuid();
extra->target_file_path = download_item.GetTargetFilePath();
extra->mime_type = download_item.GetMimeType();
extra->is_download_asset = true;

Powered by Google App Engine
This is Rietveld 408576698