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

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

Issue 10837125: Revert 149794 - DownloadItem::Observer::OnDownloadDestroyed() replaces DownloadItem::REMOVING (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1228/src/
Patch Set: 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
===================================================================
--- 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));
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_download_observer.h ('k') | chrome/browser/download/download_item_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698