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

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

Issue 904003002: Files.app: Start to use new metadata models in DirectoryContents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: 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 3e8eb4342057405d8b047a58eec3397de33e788e..539d34ea0397d544f6622b715739adf022d7a547 100644
--- a/ui/file_manager/file_manager/foreground/js/directory_model.js
+++ b/ui/file_manager/file_manager/foreground/js/directory_model.js
@@ -44,7 +44,7 @@ function DirectoryModel(singleSelection, fileFilter, fileWatcher, metadataCache,
this.onFilterChanged_.bind(this));
this.currentFileListContext_ = new FileListContext(
- fileFilter, metadataCache);
+ fileFilter, metadataCache, fileSystemMetadata);
this.currentDirContents_ =
DirectoryContents.createForDirectory(this.currentFileListContext_, null);
@@ -834,7 +834,7 @@ DirectoryModel.prototype.createDirectory = function(name,
then(function(newEntry) {
// Refresh the cache.
this.metadataCache_.clear([newEntry], '*');
- this.fileSystemMetadata_.notifyEntryCreated([newEntry]);
+ this.fileSystemMetadata_.notifyEntriesCreated([newEntry]);
return new Promise(function(onFulfilled, onRejected) {
dirContents.prefetchMetadata(
[newEntry], false, onFulfilled.bind(null, newEntry));

Powered by Google App Engine
This is Rietveld 408576698