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

Unified Diff: chrome/browser/resources/downloads/downloads.js

Issue 10831302: Download resumption - Preliminary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed signed/unsigned compare issue. Created 8 years, 1 month 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 | « chrome/browser/plugins/plugin_installer.cc ('k') | chrome/browser/ui/views/download/download_item_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/downloads/downloads.js
diff --git a/chrome/browser/resources/downloads/downloads.js b/chrome/browser/resources/downloads/downloads.js
index 3f96887e1f41bcc816028732182ad277bb0756f3..61b4d30710a99b477587f9fe7054901f742d5004 100644
--- a/chrome/browser/resources/downloads/downloads.js
+++ b/chrome/browser/resources/downloads/downloads.js
@@ -502,9 +502,12 @@ Download.prototype.update = function(download) {
showInline(this.controlRetry_, this.state_ == Download.States.CANCELLED);
this.controlRetry_.href = this.url_;
showInline(this.controlPause_, this.state_ == Download.States.IN_PROGRESS);
- showInline(this.controlResume_, this.state_ == Download.States.PAUSED);
+ showInline(this.controlResume_,
+ this.state_ == Download.States.PAUSED ||
+ this.state_ == Download.States.INTERRUPTED);
var showCancel = this.state_ == Download.States.IN_PROGRESS ||
- this.state_ == Download.States.PAUSED;
+ this.state_ == Download.States.PAUSED ||
+ this.state_ == Download.States.INTERRUPTED;
showInline(this.controlCancel_, showCancel);
showInline(this.controlRemove_, !showCancel);
« no previous file with comments | « chrome/browser/plugins/plugin_installer.cc ('k') | chrome/browser/ui/views/download/download_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698