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

Unified Diff: chrome/browser/resources/md_downloads/manager.js

Issue 1264553002: Re-connect search on MD downloads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dl-misc6
Patch Set: Created 5 years, 5 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/md_downloads/manager.js
diff --git a/chrome/browser/resources/md_downloads/manager.js b/chrome/browser/resources/md_downloads/manager.js
index f1c629b4cc67766f49df872be1e226b6a5ac869b..657e8427de12eccd052bba22851d7faf24e78a22 100644
--- a/chrome/browser/resources/md_downloads/manager.js
+++ b/chrome/browser/resources/md_downloads/manager.js
@@ -44,7 +44,7 @@ cr.define('downloads', function() {
e.canExecute = this.$.toolbar.canUndo();
break;
case 'clear-all-command':
- e.canExecute = true;
+ e.canExecute = this.$.toolbar.canClearAll();
break;
}
},
@@ -157,7 +157,7 @@ cr.define('downloads', function() {
this.hasDownloads_ = this.size_() > 0;
if (loadTimeData.getBoolean('allowDeletingHistory'))
- this.$.toolbar.canClearAll = this.hasDownloads_;
+ this.$.toolbar.downloadsShowing = this.hasDownloads_;
this.onResize_();
},
« no previous file with comments | « no previous file | chrome/browser/resources/md_downloads/toolbar.html » ('j') | chrome/browser/resources/md_downloads/toolbar.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698