Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: chrome/browser/chromeos/gdata/gdata_download_observer.cc

Issue 10704026: Reland DownloadItem::Observer::OnDownloadDestroyed() replaces DownloadItem::REMOVING (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: lint Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 173209c566299078238f3ff674ebb88f06fbf1be..6b53fb4ae5ce1f70354d672ed2383a9992dde709 100644
--- a/chrome/browser/chromeos/gdata/gdata_download_observer.cc
+++ b/chrome/browser/chromeos/gdata/gdata_download_observer.cc
@@ -364,7 +364,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;
@@ -376,6 +375,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));

Powered by Google App Engine
This is Rietveld 408576698