| 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..fc400309399b37db0630904a282ad9285b58c43c 100644
|
| --- a/chrome/browser/download/download_history.cc
|
| +++ b/chrome/browser/download/download_history.cc
|
| @@ -120,14 +120,14 @@ void DownloadHistory::UpdateDownloadPath(DownloadItem* download_item,
|
| hs->UpdateDownloadPath(new_path, download_item->db_handle());
|
| }
|
|
|
| -void DownloadHistory::RemoveEntry(DownloadItem* download_item) {
|
| +void DownloadHistory::RemoveEntry(int64 db_handle) {
|
| // No update necessary if the download was initiated while in incognito mode.
|
| - if (download_item->db_handle() <= kUninitializedHandle)
|
| + if (db_handle <= kUninitializedHandle)
|
| return;
|
|
|
| HistoryService* hs = profile_->GetHistoryService(Profile::EXPLICIT_ACCESS);
|
| if (hs)
|
| - hs->RemoveDownload(download_item->db_handle());
|
| + hs->RemoveDownload(db_handle);
|
| }
|
|
|
| void DownloadHistory::RemoveEntriesBetween(const base::Time remove_begin,
|
| @@ -141,6 +141,11 @@ int64 DownloadHistory::GetNextFakeDbHandle() {
|
| return next_fake_db_handle_--;
|
| }
|
|
|
| +// static
|
| +bool DownloadHistory::IsFakeHandle(int64 db_handle) {
|
| + return db_handle <= 0;
|
| +}
|
| +
|
| void DownloadHistory::OnGotVisitCountToHost(HistoryService::Handle handle,
|
| bool found_visits,
|
| int count,
|
|
|