| Index: chrome/browser/chromeos/gdata/gdata_download_observer.cc
|
| ===================================================================
|
| --- chrome/browser/chromeos/gdata/gdata_download_observer.cc (revision 150095)
|
| +++ chrome/browser/chromeos/gdata/gdata_download_observer.cc (working copy)
|
| @@ -363,6 +363,7 @@
|
|
|
| // TODO(achuith): Stop the pending upload and delete the file.
|
| case DownloadItem::CANCELLED:
|
| + case DownloadItem::REMOVING:
|
| case DownloadItem::INTERRUPTED:
|
| RemovePendingDownload(download);
|
| break;
|
| @@ -374,10 +375,6 @@
|
| 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));
|
|
|
|
|