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

Unified Diff: chrome/browser/resources/file_manager/js/action_choice.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/action_choice.js
diff --git a/chrome/browser/resources/file_manager/js/action_choice.js b/chrome/browser/resources/file_manager/js/action_choice.js
index d14d52bb871318b04c7ad41b31b625b284bc6cd5..39ce80d9ff7c9d02dc3aee27b11df38c57eaef80 100644
--- a/chrome/browser/resources/file_manager/js/action_choice.js
+++ b/chrome/browser/resources/file_manager/js/action_choice.js
@@ -220,7 +220,12 @@ ActionChoice.prototype.renderPreview_ = function(entries, count) {
new ThumbnailLoader(entry.toURL(),
ThumbnailLoader.LoaderType.IMAGE,
metadata).load(
- box, ThumbnailLoader.FillMode.FILL, onSuccess, onError, onError);
+ box,
+ ThumbnailLoader.OptimizationMode.DISCARD_DETACHED,
+ ThumbnailLoader.FillMode.FILL,
+ onSuccess,
+ onError,
+ onError);
});
};
« no previous file with comments | « chrome/browser/resources/file_manager/gallery.html ('k') | chrome/browser/resources/file_manager/js/file_selection.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698