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

Unified Diff: ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js

Issue 297323003: Gallery.app: Fix image rotation in the image editor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/gallery/js/image_editor/image_encoder.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/metadata/metadata_cache.js
diff --git a/ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js b/ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js
index 33082e8e14e4e3f59d7e9d74dc1be5ce169b72b4..119f86456c7593955ee978f8b6ff1914f03a70ea 100644
--- a/ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js
+++ b/ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js
@@ -1000,14 +1000,14 @@ ContentProvider.ConvertContentMetadata = function(metadata, opt_result) {
for (var key in metadata) {
if (metadata.hasOwnProperty(key)) {
- if (!('media' in result)) result.media = {};
+ if (!result.media)
+ result.media = {};
result.media[key] = metadata[key];
}
}
- if ('media' in result) {
+ if (result.media)
result.fetchedMedia = result.media;
- }
return result;
};
« no previous file with comments | « no previous file | ui/file_manager/gallery/js/image_editor/image_encoder.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698