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

Unified Diff: chrome/browser/download/download_history.cc

Issue 8008021: Add new UMA stats to get a handle on Downloads UI Usage (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fixed tests Created 9 years, 3 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/download/download_history.cc
diff --git a/chrome/browser/download/download_history.cc b/chrome/browser/download/download_history.cc
index 426a4345ff1717053737253bfb607ed3f27efaca..71c6bf054926e7f7af1aee9cb441e709542d61be 100644
--- a/chrome/browser/download/download_history.cc
+++ b/chrome/browser/download/download_history.cc
@@ -111,9 +111,14 @@ void DownloadHistory::UpdateEntry(DownloadItem* download_item) {
if (!hs)
return;
- hs->UpdateDownload(download_item->received_bytes(),
- download_item->state(),
- download_item->db_handle());
+ history::DownloadItemData data;
+ data.received_bytes = download_item->received_bytes();
+ data.state = download_item->state();
+ data.end_time = download_item->end_time();
+ data.opened = download_item->opened();
+ data.db_handle = download_item->db_handle();
+
+ hs->UpdateDownload(data);
}
void DownloadHistory::UpdateDownloadPath(DownloadItem* download_item,
« no previous file with comments | « no previous file | chrome/browser/history/download_database.h » ('j') | chrome/browser/history/download_database.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698