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

Unified Diff: ui/file_manager/file_manager/foreground/js/ui/single_file_details.js

Issue 1814143002: Files app: You have to use "contentThumbnailUrl" for artwork, and fix nits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/ui/single_file_details.js
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 6a191a82962f9be7d8da695988d0172de115febe..7cfe0710f437da7dbc81d8e4ae889a305cc4fbdc 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));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698