| Index: chrome/browser/download/download_history.cc
|
| diff --git a/chrome/browser/download/download_history.cc b/chrome/browser/download/download_history.cc
|
| index 115541a4d24742ed52fa9ed9683f915109b60175..9aaf489a06b9604a5fa8e63b98d3b2849c5a62ba 100644
|
| --- a/chrome/browser/download/download_history.cc
|
| +++ b/chrome/browser/download/download_history.cc
|
| @@ -97,7 +97,7 @@ void DownloadHistory::AddEntry(
|
| void DownloadHistory::UpdateEntry(DownloadItem* download_item) {
|
| // Don't store info in the database if the download was initiated while in
|
| // incognito mode or if it hasn't been initialized in our database table.
|
| - if (download_item->db_handle() <= kUninitializedHandle)
|
| + if (download_item->id() <= kUninitializedHandle)
|
| return;
|
|
|
| HistoryService* hs = profile_->GetHistoryService(Profile::EXPLICIT_ACCESS);
|
| @@ -106,28 +106,28 @@ void DownloadHistory::UpdateEntry(DownloadItem* download_item) {
|
|
|
| hs->UpdateDownload(download_item->received_bytes(),
|
| download_item->state(),
|
| - download_item->db_handle());
|
| + download_item->id());
|
| }
|
|
|
| void DownloadHistory::UpdateDownloadPath(DownloadItem* download_item,
|
| const FilePath& new_path) {
|
| // No update necessary if the download was initiated while in incognito mode.
|
| - if (download_item->db_handle() <= kUninitializedHandle)
|
| + if (download_item->id() <= kUninitializedHandle)
|
| return;
|
|
|
| HistoryService* hs = profile_->GetHistoryService(Profile::EXPLICIT_ACCESS);
|
| if (hs)
|
| - hs->UpdateDownloadPath(new_path, download_item->db_handle());
|
| + hs->UpdateDownloadPath(new_path, download_item->id());
|
| }
|
|
|
| void DownloadHistory::RemoveEntry(DownloadItem* download_item) {
|
| // No update necessary if the download was initiated while in incognito mode.
|
| - if (download_item->db_handle() <= kUninitializedHandle)
|
| + if (download_item->id() <= kUninitializedHandle)
|
| return;
|
|
|
| HistoryService* hs = profile_->GetHistoryService(Profile::EXPLICIT_ACCESS);
|
| if (hs)
|
| - hs->RemoveDownload(download_item->db_handle());
|
| + hs->RemoveDownload(download_item->id());
|
| }
|
|
|
| void DownloadHistory::RemoveEntriesBetween(const base::Time remove_begin,
|
|
|