Index: chrome/browser/resources/downloads.html |
=================================================================== |
--- chrome/browser/resources/downloads.html (revision 22137) |
+++ chrome/browser/resources/downloads.html (working copy) |
@@ -395,6 +395,10 @@ |
localStrings.getString('control_resume')); |
this.nodeControls_.appendChild(this.controlResume_); |
+ this.controlRemove_ = createLink(bind(this.remove_, this), |
+ localStrings.getString('control_removefromlist')); |
+ this.nodeControls_.appendChild(this.controlRemove_); |
+ |
this.controlCancel_ = createLink(bind(this.cancel_, this), |
localStrings.getString('control_cancel')); |
this.nodeControls_.appendChild(this.controlCancel_); |
@@ -615,6 +619,14 @@ |
} |
/** |
+ * Tells the backend to remove this download from history and download shelf. |
+ */ |
+ Download.prototype.remove_ = function() { |
+ chrome.send("remove", [this.id_.toString()]); |
+ return false; |
+} |
+ |
+/** |
* Tells the backend to cancel this download. |
*/ |
Download.prototype.cancel_ = function() { |