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

Unified Diff: chrome/browser/resources/file_manager/js/photo/photo_import.js

Issue 12304013: Introduce Image loader extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplified. Created 7 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
Index: chrome/browser/resources/file_manager/js/photo/photo_import.js
diff --git a/chrome/browser/resources/file_manager/js/photo/photo_import.js b/chrome/browser/resources/file_manager/js/photo/photo_import.js
index 239330f93db85b2e23fa91e6ecd9cb78e2dc9997..4996c6d92d2bc0df37103ef2540c721ee50ddae2 100644
--- a/chrome/browser/resources/file_manager/js/photo/photo_import.js
+++ b/chrome/browser/resources/file_manager/js/photo/photo_import.js
@@ -339,7 +339,8 @@ PhotoImport.prototype.decorateGridItem_ = function(li, entry) {
new ThumbnailLoader(entry.toURL(),
ThumbnailLoader.LoaderType.IMAGE,
metadata).
- load(box, ThumbnailLoader.FillMode.FIT);
+ load(box, ThumbnailLoader.FillMode.FIT,
+ ThumbnailLoader.OptimizationMode.DISCARD_DETACHED);
});
frame.appendChild(box);

Powered by Google App Engine
This is Rietveld 408576698