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

Unified Diff: chrome/browser/resources/file_manager/js/image_editor/gallery.js

Issue 10384155: [filemanager] Content metadata moved to the cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Bug Created 8 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
Index: chrome/browser/resources/file_manager/js/image_editor/gallery.js
===================================================================
--- chrome/browser/resources/file_manager/js/image_editor/gallery.js (revision 138459)
+++ chrome/browser/resources/file_manager/js/image_editor/gallery.js (working copy)
@@ -23,7 +23,7 @@
* {function(string)} onNameChange Called every time a selected
* item name changes (on rename and on selection change).
* {function} onClose
- * {MetadataProvider} metadataProvider
+ * {string} rootUrl
* {Array.<Object>} shareActions
* {string} readonlyDirName Directory name for readonly warning or null.
* {DirEntry} saveDirEntry Directory to save to.
@@ -33,6 +33,7 @@
this.container_ = container;
this.document_ = container.ownerDocument;
this.context_ = context;
+ this.context_.metadataProvider = new MetadataProvider(this.context_.rootUrl);
var strf = context.displayStringFunction;
this.displayStringFunction_ = function(id, formatArgs) {
@@ -1307,7 +1308,7 @@
url = metadata.thumbnailURL;
transform = metadata.thumbnailTransform;
} else if (mediaType == 'image' &&
- FileType.canUseImageUrlForPreview(metadata)) {
+ FileType.canUseImageUrlForPreview(metadata.width, metadata.height, 0)) {
url = this.url_;
transform = metadata.imageTransform;
} else {

Powered by Google App Engine
This is Rietveld 408576698