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

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

Issue 2700073003: Take the rotation information from the right source. (Closed)
Patch Set: Created 3 years, 10 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 | ui/file_manager/file_manager/foreground/js/thumbnail_loader_unittest.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/thumbnail_loader.js
diff --git a/ui/file_manager/file_manager/foreground/js/thumbnail_loader.js b/ui/file_manager/file_manager/foreground/js/thumbnail_loader.js
index 49898f024f14a3bccbb01c9a19ad50fb61bb9177..368e189a69149405dd6aa4b513a414b73eca4628 100644
--- a/ui/file_manager/file_manager/foreground/js/thumbnail_loader.js
+++ b/ui/file_manager/file_manager/foreground/js/thumbnail_loader.js
@@ -467,9 +467,8 @@ ThumbnailLoader.prototype.loadDetachedImage = function(callback) {
priority: this.priority_,
timestamp: modificationTime
};
- if (this.metadata_ && this.metadata_.media &&
- this.metadata_.media.imageTransform) {
- loaderOptions.orientation = this.metadata_.media.imageTransform;
+ if (this.transform_) {
+ loaderOptions.orientation = this.transform_;
}
// Comsume the transform parameter to avoid duplicated transformation in
// getImage().
« no previous file with comments | « no previous file | ui/file_manager/file_manager/foreground/js/thumbnail_loader_unittest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698