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

Unified Diff: chrome/browser/download/download_shelf.cc

Issue 159769: Allow cancellable download items to be removable from download shelf.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_shelf.cc
===================================================================
--- chrome/browser/download/download_shelf.cc (revision 22274)
+++ chrome/browser/download/download_shelf.cc (working copy)
@@ -73,7 +73,8 @@
case CANCEL:
return download_->state() == DownloadItem::IN_PROGRESS;
case REMOVE_ITEM:
- return download_->state() == DownloadItem::COMPLETE;
+ return download_->state() == DownloadItem::COMPLETE ||
+ download_->state() == DownloadItem::CANCELLED;
default:
return id > 0 && id < MENU_LAST;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698