Index: chrome/browser/chromeos/gdata/gdata_download_observer.cc |
diff --git a/chrome/browser/chromeos/gdata/gdata_download_observer.cc b/chrome/browser/chromeos/gdata/gdata_download_observer.cc |
index cfbe846d04d5d663b1edfe31317d609a4c1e109b..cfb3d65c3ffbdea987d133ba9f6e9b1b9799734d 100644 |
--- a/chrome/browser/chromeos/gdata/gdata_download_observer.cc |
+++ b/chrome/browser/chromeos/gdata/gdata_download_observer.cc |
@@ -366,7 +366,6 @@ void GDataDownloadObserver::OnDownloadUpdated(DownloadItem* download) { |
// TODO(achuith): Stop the pending upload and delete the file. |
case DownloadItem::CANCELLED: |
- case DownloadItem::REMOVING: |
case DownloadItem::INTERRUPTED: |
RemovePendingDownload(download); |
break; |
@@ -378,6 +377,10 @@ void GDataDownloadObserver::OnDownloadUpdated(DownloadItem* download) { |
DVLOG(1) << "Number of pending downloads=" << pending_downloads_.size(); |
} |
+void GDataDownloadObserver::OnDownloadDestroyed(DownloadItem* download) { |
+ RemovePendingDownload(download); |
+} |
+ |
void GDataDownloadObserver::AddPendingDownload(DownloadItem* download) { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |