| 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 d3989fdf569d4a26dbebf7a144cbd4790f55cafb..ec7623bd99f8d99a60bac6b948c51c0ea9d7026a 100644
|
| --- a/chrome/browser/chromeos/gdata/gdata_download_observer.cc
|
| +++ b/chrome/browser/chromeos/gdata/gdata_download_observer.cc
|
| @@ -358,7 +358,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;
|
| @@ -369,6 +368,10 @@ void GDataDownloadObserver::OnDownloadUpdated(DownloadItem* download) {
|
| DVLOG(1) << "Number of pending downloads=" << pending_downloads_.size();
|
| }
|
|
|
| +void GDataDownloadObserver::OnDownloadDestructed(DownloadItem* download) {
|
| + RemovePendingDownload(download);
|
| +}
|
| +
|
| void GDataDownloadObserver::AddPendingDownload(DownloadItem* download) {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
|
|
|
|