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

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

Issue 203069: Add pause and resume to Linux download shelf. (Closed)
Patch Set: add some braces Created 11 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
« no previous file with comments | « no previous file | chrome/browser/gtk/download_item_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_shelf.cc
diff --git a/chrome/browser/download/download_shelf.cc b/chrome/browser/download/download_shelf.cc
index 70db47a0ab715f295ef76f2c2ca4a52e67c00535..f771178e74277cd00335a4141937dba810e8fcf9 100644
--- a/chrome/browser/download/download_shelf.cc
+++ b/chrome/browser/download/download_shelf.cc
@@ -28,13 +28,17 @@ DownloadShelfContextMenu::~DownloadShelfContextMenu() {
bool DownloadShelfContextMenu::ItemIsChecked(int id) const {
switch (id) {
- case OPEN_WHEN_COMPLETE:
+ case OPEN_WHEN_COMPLETE: {
return download_->open_when_complete();
+ }
case ALWAYS_OPEN_TYPE: {
const FilePath::StringType extension =
file_util::GetFileExtensionFromPath(download_->full_path());
return download_->manager()->ShouldOpenFileExtension(extension);
}
+ case TOGGLE_PAUSE: {
+ return download_->is_paused();
+ }
}
return false;
}
« no previous file with comments | « no previous file | chrome/browser/gtk/download_item_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698