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

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

Issue 310633002: Files.app: Let DirectoryContents controls metadata cache size by relative value (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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/directory_model.js
diff --git a/ui/file_manager/file_manager/foreground/js/directory_model.js b/ui/file_manager/file_manager/foreground/js/directory_model.js
index c5ace92ba680d3e3f3ad90f79a1485afa8841922..996edc54a6d5777886992ad0ad401caafdbd5d0f 100644
--- a/ui/file_manager/file_manager/foreground/js/directory_model.js
+++ b/ui/file_manager/file_manager/foreground/js/directory_model.js
@@ -497,6 +497,7 @@ DirectoryModel.prototype.replaceDirectoryContents_ = function(dirContents) {
var leadIndex = this.fileListSelection_.leadIndex;
var leadEntry = this.getLeadEntry_();
+ this.currentDirContents_.dispose();
this.currentDirContents_ = dirContents;
dirContents.replaceContextFileList();

Powered by Google App Engine
This is Rietveld 408576698