diff options
author | mhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-03 17:04:03 +0000 |
---|---|---|
committer | mhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-03 17:04:03 +0000 |
commit | cd5b7d85a8cc26478fd13229e0838c42c32bcaef (patch) | |
tree | a68fe1099987ec0717e1402553934ee58ad79e5f /chrome/browser/download | |
parent | 0212a81b1e35264cbe5d5ddd959b68ca99ebe381 (diff) | |
download | chromium_src-cd5b7d85a8cc26478fd13229e0838c42c32bcaef.zip chromium_src-cd5b7d85a8cc26478fd13229e0838c42c32bcaef.tar.gz chromium_src-cd5b7d85a8cc26478fd13229e0838c42c32bcaef.tar.bz2 |
Reverting 22273.
Review URL: http://codereview.chromium.org/160524
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22274 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download')
-rw-r--r-- | chrome/browser/download/download_shelf.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/chrome/browser/download/download_shelf.cc b/chrome/browser/download/download_shelf.cc index 896937b..2be924f 100644 --- a/chrome/browser/download/download_shelf.cc +++ b/chrome/browser/download/download_shelf.cc @@ -73,15 +73,13 @@ bool DownloadShelfContextMenu::IsItemCommandEnabled(int id) const { case CANCEL: return download_->state() == DownloadItem::IN_PROGRESS; case REMOVE_ITEM: - return download_->state() == DownloadItem::COMPLETE || - download_->state() == DownloadItem::CANCELLED; + return download_->state() == DownloadItem::COMPLETE; default: return id > 0 && id < MENU_LAST; } } void DownloadShelfContextMenu::ExecuteItemCommand(int id) { - item_removed_ = true; switch (id) { case SHOW_IN_FOLDER: download_->manager()->ShowDownloadInShell(download_); @@ -100,7 +98,6 @@ void DownloadShelfContextMenu::ExecuteItemCommand(int id) { model_->CancelTask(); break; case REMOVE_ITEM: - item_removed_ = true; download_->Remove(false); break; default: |