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

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

Issue 1301723002: MD Downloads: update "expanded" (i.e. in progress) cards (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add dep Created 5 years, 4 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/item.js
diff --git a/chrome/browser/resources/md_downloads/item.js b/chrome/browser/resources/md_downloads/item.js
index 17e21b889245a6b1a99e61b6545f1916950bece6..fef60d58dd3e758b99fbe3d827b366318019f9f5 100644
--- a/chrome/browser/resources/md_downloads/item.js
+++ b/chrome/browser/resources/md_downloads/item.js
@@ -80,7 +80,7 @@ cr.define('downloads', function() {
/** @const */ var showProgress =
isFinite(data.percent) && !this.isDangerous_;
- this.$.progress.hidden = !showProgress;
+ this.$.content.classList.toggle('show-progress', showProgress);
if (showProgress) {
this.$.progress.indeterminate = data.percent < 0;

Powered by Google App Engine
This is Rietveld 408576698