| Index: chrome/browser/download/save_package.cc
|
| diff --git a/chrome/browser/download/save_package.cc b/chrome/browser/download/save_package.cc
|
| index 42003faeefa3051c2cc39e13c8fcdf42c9803c81..9953a4cbc567e3db178c1c560686b7c49e1b3d19 100644
|
| --- a/chrome/browser/download/save_package.cc
|
| +++ b/chrome/browser/download/save_package.cc
|
| @@ -301,14 +301,9 @@ SavePackage::~SavePackage() {
|
| STLDeleteValues(&in_progress_items_);
|
| STLDeleteValues(&saved_failed_items_);
|
|
|
| - if (download_) {
|
| - // We call this to remove the view from the shelf. It will invoke
|
| - // DownloadManager::RemoveDownload, but since the fake DownloadItem is not
|
| - // owned by DownloadManager, it will do nothing to our fake item.
|
| - download_->Remove(false);
|
| - delete download_;
|
| - download_ = NULL;
|
| - }
|
| + // The DownloadItem is owned by DownloadManager.
|
| + download_ = NULL;
|
| +
|
| file_manager_ = NULL;
|
|
|
| // If there's an outstanding save dialog, make sure it doesn't call us back
|
|
|