Commit e67691de authored by Esmael El-Moslimany's avatar Esmael El-Moslimany Committed by Commit Bot

WebUI Downloads: format c/b/r/downloads/item.js

Bug: 1116329
Change-Id: Idad6c2885c852c6044a591e0a2a3112adead8d7d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2424383Reviewed-by: default avatarJohn Lee <johntlee@chromium.org>
Commit-Queue: Esmael Elmoslimany <aee@chromium.org>
Cr-Commit-Position: refs/heads/master@{#809793}
parent 3053a2ab
...@@ -566,8 +566,8 @@ Polymer({ ...@@ -566,8 +566,8 @@ Polymer({
IconLoader.getInstance() IconLoader.getInstance()
.loadIcon(this.$['file-icon'], path) .loadIcon(this.$['file-icon'], path)
.then(success => { .then(success => {
if (path === this.data.filePath && this.data.state !== if (path === this.data.filePath &&
States.ASYNC_SCANNING) { this.data.state !== States.ASYNC_SCANNING) {
this.useFileIcon_ = success; this.useFileIcon_ = success;
} }
}); });
...@@ -610,8 +610,8 @@ Polymer({ ...@@ -610,8 +610,8 @@ Polymer({
/** @private */ /** @private */
onUrlTap_() { onUrlTap_() {
chrome.send('metricsHandler:recordAction', chrome.send(
['Downloads_OpenUrlOfDownloadedItem']); 'metricsHandler:recordAction', ['Downloads_OpenUrlOfDownloadedItem']);
}, },
/** @private */ /** @private */
...@@ -674,5 +674,5 @@ Polymer({ ...@@ -674,5 +674,5 @@ Polymer({
element.focus(); element.focus();
} }
}); });
} },
}); });
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment