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

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

Issue 11673003: UI changes associated with downloads resumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged from DownloadsResumption; includes CanResumeDownload, which was nuked in the original CL. Created 7 years, 12 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
Index: chrome/browser/resources/downloads/downloads.js
diff --git a/chrome/browser/resources/downloads/downloads.js b/chrome/browser/resources/downloads/downloads.js
index e5f23f10d6ae66cf0ef1a4535b508582fac276f2..1025a051edd417f618ef31b4e1a591b4522670ba 100644
--- a/chrome/browser/resources/downloads/downloads.js
+++ b/chrome/browser/resources/downloads/downloads.js
@@ -490,9 +490,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/download/download_shelf_context_menu.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