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

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

Issue 10991014: [filemanager] Improved thumbnail update for changed files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/file_manager.js
===================================================================
--- chrome/browser/resources/file_manager/js/file_manager.js (revision 158544)
+++ chrome/browser/resources/file_manager/js/file_manager.js (working copy)
@@ -1870,11 +1870,20 @@
// TODO(dgozman): refresh content metadata only when modificationTime
// changed.
this.metadataCache_.clear(entries, 'filesystem|thumbnail|media');
- this.metadataCache_.get(entries, 'filesystem|thumbnail', null);
+ this.metadataCache_.get(entries, 'filesystem', null);
if (this.isOnGData()) {
this.metadataCache_.clear(entries, 'gdata');
this.metadataCache_.get(entries, 'gdata', null);
}
+
+ var visibleItems = this.currentList_.items;
+ var visibleEntries = [];
+ for (var i = 0; i < visibleItems.length; i++) {
+ var index = this.currentList_.getIndexOfListItem(visibleItems[i]);
+ var entry = this.directoryModel_.getFileList().item(index);
+ visibleEntries.push(entry);
+ }
+ this.metadataCache_.get(visibleEntries, 'thumbnail', null);
};
FileManager.prototype.dailyUpdateModificationTime_ = function() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698