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

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

Issue 831833004: Files.app: Stop to use drive thumbnail for cached files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix. Created 5 years, 11 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: ui/file_manager/file_manager/foreground/js/metadata_update_controller.js
diff --git a/ui/file_manager/file_manager/foreground/js/metadata_update_controller.js b/ui/file_manager/file_manager/foreground/js/metadata_update_controller.js
index 5379572a2ec7f0ec5f1b25ce031de96aab8f8bdd..b9df4851fa4ec0ecab1a07e485a80e5eb1c46d1a 100644
--- a/ui/file_manager/file_manager/foreground/js/metadata_update_controller.js
+++ b/ui/file_manager/file_manager/foreground/js/metadata_update_controller.js
@@ -171,9 +171,10 @@ MetadataUpdateController.prototype.onEntriesChanged_ = function(event) {
ThumbnailLoader.LoaderType.CANVAS,
metadata,
undefined, // Media type.
- locationInfo.isDriveBased ?
- ThumbnailLoader.UseEmbedded.USE_EMBEDDED :
- ThumbnailLoader.UseEmbedded.NO_EMBEDDED,
+ [
+ ThumbnailLoader.LoadTarget.EXTERNAL_METADATA,
+ ThumbnailLoader.LoadTarget.FILE_ENTRY
+ ],
10); // Very low priority.
thumbnailLoader.loadDetachedImage(function(success) {});
});

Powered by Google App Engine
This is Rietveld 408576698