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

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

Issue 2623613009: Disable "pause" item in context menu for "Save Page As..." downloads. (Closed)
Patch Set: Created 3 years, 11 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 | chrome/browser/download/download_commands_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_commands.cc
diff --git a/chrome/browser/download/download_commands.cc b/chrome/browser/download/download_commands.cc
index 38d68c58eb7400f7c237c11e03899385c574a56b..2c8bb11fb1c511e6c79a735027fd341b55113a4e 100644
--- a/chrome/browser/download/download_commands.cc
+++ b/chrome/browser/download/download_commands.cc
@@ -191,6 +191,7 @@ bool DownloadCommands::IsCommandEnabled(Command command) const {
return !download_item_->IsDone();
case PAUSE:
return !download_item_->IsDone() && !download_item_->IsPaused() &&
+ !download_item_->IsSavePackageDownload() &&
download_item_->GetState() == content::DownloadItem::IN_PROGRESS;
case RESUME:
return download_item_->CanResume() &&
« no previous file with comments | « no previous file | chrome/browser/download/download_commands_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698