| Index: chrome/browser/download/download_shelf_context_menu.cc
|
| diff --git a/chrome/browser/download/download_shelf_context_menu.cc b/chrome/browser/download/download_shelf_context_menu.cc
|
| index 43c85ed2a6390c998bfad5f644934000a02593ae..64236f700e7f41f9a198f97df191d70e127cd0e6 100644
|
| --- a/chrome/browser/download/download_shelf_context_menu.cc
|
| +++ b/chrome/browser/download/download_shelf_context_menu.cc
|
| @@ -112,8 +112,12 @@ void DownloadShelfContextMenu::ExecuteCommand(int command_id) {
|
| // It is possible for the download to complete before the user clicks the
|
| // menu item, recheck if the download is in progress state before toggling
|
| // pause.
|
| - if (download_item_->IsPartialDownload())
|
| - download_item_->TogglePause();
|
| + if (download_item_->IsPartialDownload()) {
|
| + if (download_item_->IsPaused())
|
| + download_item_->Resume();
|
| + else
|
| + download_item_->Pause();
|
| + }
|
| break;
|
| case DISCARD:
|
| download_item_->Delete(DownloadItem::DELETE_DUE_TO_USER_DISCARD);
|
|
|