diff options
Diffstat (limited to 'content')
-rw-r--r-- | content/browser/download/download_manager.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/content/browser/download/download_manager.cc b/content/browser/download/download_manager.cc index 3a2a7ee..f1c52d4 100644 --- a/content/browser/download/download_manager.cc +++ b/content/browser/download/download_manager.cc @@ -848,6 +848,11 @@ void DownloadManager::OnDownloadItemAddedToPersistentStore(int32 download_id, // TODO(rdsmith): Remove after http://crbug.com/85408 resolved. int64 largest_handle = largest_db_handle_in_history_; base::debug::Alias(&largest_handle); + int32 matching_item_download_id + = (ContainsKey(history_downloads_, db_handle) ? + history_downloads_[db_handle]->id() : 0); + base::debug::Alias(&matching_item_download_id); + CHECK(!ContainsKey(history_downloads_, db_handle)); AddDownloadItemToHistory(download, db_handle); |