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

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

Issue 11363222: Persist download interrupt reason, both target and current paths, and url_chain. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 9d701950dcb5375eba799c55229a3e71a0588c42..94391f451d69d7bc4bf818a5ab775f228de75fff 100644
--- a/chrome/browser/download/download_history.cc
+++ b/chrome/browser/download/download_history.cc
@@ -105,8 +105,10 @@ void DownloadHistory::UpdateEntry(DownloadItem* download_item) {
hs->UpdateDownload(download_item->GetPersistentStoreInfo());
}
-void DownloadHistory::UpdateDownloadPath(DownloadItem* download_item,
- const FilePath& new_path) {
+void DownloadHistory::UpdateDownloadPath(
+ DownloadItem* download_item,
+ const FilePath& target_path,
+ const FilePath& current_path) {
// No update necessary if the download was initiated while in incognito mode.
if (download_item->GetDbHandle() <= DownloadItem::kUninitializedHandle)
return;
@@ -114,7 +116,8 @@ void DownloadHistory::UpdateDownloadPath(DownloadItem* download_item,
HistoryService* hs = HistoryServiceFactory::GetForProfileIfExists(
profile_, Profile::EXPLICIT_ACCESS);
if (hs)
- hs->UpdateDownloadPath(new_path, download_item->GetDbHandle());
+ hs->UpdateDownloadPath(target_path, current_path,
+ download_item->GetDbHandle());
}
void DownloadHistory::RemoveEntry(DownloadItem* download_item) {

Powered by Google App Engine
This is Rietveld 408576698