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

Unified Diff: chrome/browser/ui/cocoa/download/download_item_controller.mm

Issue 7983037: Revert 102126 - Make cancel remove cancelled download from active queues at time of cancel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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/ui/cocoa/download/download_item_controller.mm
===================================================================
--- chrome/browser/ui/cocoa/download/download_item_controller.mm (revision 102135)
+++ chrome/browser/ui/cocoa/download/download_item_controller.mm (working copy)
@@ -353,7 +353,7 @@
base::Time::Now() - creationTime_);
DownloadItem* download = bridge_->download_model()->download();
if (download->IsPartialDownload())
- download->Cancel();
+ download->Cancel(true);
download->Delete(DownloadItem::DELETE_DUE_TO_USER_DISCARD);
// WARNING: we are deleted at this point. Don't access 'this'.
}
« no previous file with comments | « chrome/browser/download/download_manager_unittest.cc ('k') | chrome/browser/ui/gtk/download/download_item_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698