| 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) {
|
|
|