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

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: comments Created 9 years, 2 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..e86dddb10e43ffa107f5740e30ce15881b7e8e31 100644
--- a/chrome/browser/download/download_history.cc
+++ b/chrome/browser/download/download_history.cc
@@ -110,10 +110,7 @@ void DownloadHistory::UpdateEntry(DownloadItem* download_item) {
HistoryService* hs = profile_->GetHistoryService(Profile::EXPLICIT_ACCESS);
if (!hs)
return;
-
- hs->UpdateDownload(download_item->received_bytes(),
- download_item->state(),
- download_item->db_handle());
+ hs->UpdateDownload(download_item->GetPersistentStoreInfo());
}
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.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698