summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorryoh <ryoh@chromium.org>2016-03-17 23:47:01 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-18 06:49:02 +0000
commitb0ff1b57ae720ec86d8f5a2805837ead0e99a239 (patch)
tree55684ecdc7935760449a03060ea23d93bb151249
parent07892da08747cb20df3856387961dff5f4902cf3 (diff)
downloadchromium_src-b0ff1b57ae720ec86d8f5a2805837ead0e99a239.zip
chromium_src-b0ff1b57ae720ec86d8f5a2805837ead0e99a239.tar.gz
chromium_src-b0ff1b57ae720ec86d8f5a2805837ead0e99a239.tar.bz2
Files app: You have to use "contentThumbnailUrl" for artwork, and fix nits.
BUG=595966 Review URL: https://codereview.chromium.org/1814143002 Cr-Commit-Position: refs/heads/master@{#381903}
-rw-r--r--ui/file_manager/file_manager/foreground/js/ui/single_file_details.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/file_manager/file_manager/foreground/js/ui/single_file_details.js b/ui/file_manager/file_manager/foreground/js/ui/single_file_details.js
index 6a191a8..7cfe071 100644
--- a/ui/file_manager/file_manager/foreground/js/ui/single_file_details.js
+++ b/ui/file_manager/file_manager/foreground/js/ui/single_file_details.js
@@ -135,7 +135,7 @@ SingleFileDetailsPanel.prototype = {
video.poster = result.data;
}.bind(this));
}
- }else if (thumbnailUrl) {
+ } else if (thumbnailUrl) {
video.poster = thumbnailUrl;
}
this.preview_ = video;
@@ -169,7 +169,7 @@ SingleFileDetailsPanel.prototype = {
}
var img = document.createElement('img');
this.thumbnail_.appendChild(img);
- img.src = item.externalFileUrl;
+ img.src = item.contentThumbnailUrl;
this.thumbnail_.classList.toggle('loaded', true);
}.bind(this));
}