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

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

Issue 971723002: Files.app: Rename FileSystemMetadata with MetadataModel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed. 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 20423cd53524c3ac835e9b878ba8a1f5d854e15b..bb014b7963d5618cc7adc132bd9b4582c39420e3 100644
--- a/ui/file_manager/file_manager/foreground/js/directory_model.js
+++ b/ui/file_manager/file_manager/foreground/js/directory_model.js
@@ -14,7 +14,7 @@ var SHORT_RESCAN_INTERVAL = 100;
* @param {boolean} singleSelection True if only one file could be selected
* at the time.
* @param {FileFilter} fileFilter Instance of FileFilter.
- * @param {!FileSystemMetadata} fileSystemMetadata Metadata model.
+ * @param {!MetadataModel} metadataModel Metadata model.
* service.
* @param {VolumeManagerWrapper} volumeManager The volume manager.
* @param {!FileOperationManager} fileOperationManager File operation manager.
@@ -22,7 +22,7 @@ var SHORT_RESCAN_INTERVAL = 100;
* @extends {cr.EventTarget}
*/
function DirectoryModel(singleSelection, fileFilter,
- fileSystemMetadata,
+ metadataModel,
volumeManager, fileOperationManager) {
this.fileListSelection_ = singleSelection ?
new FileListSingleSelectionModel() : new FileListSelectionModel();
@@ -42,11 +42,11 @@ function DirectoryModel(singleSelection, fileFilter,
this.onFilterChanged_.bind(this));
this.currentFileListContext_ =
- new FileListContext(fileFilter, fileSystemMetadata);
+ new FileListContext(fileFilter, metadataModel);
this.currentDirContents_ =
DirectoryContents.createForDirectory(this.currentFileListContext_, null);
- this.fileSystemMetadata_ = fileSystemMetadata;
+ this.metadataModel_ = metadataModel;
this.volumeManager_ = volumeManager;
this.volumeManager_.volumeInfoList.addEventListener(
@@ -494,7 +494,7 @@ DirectoryModel.prototype.clearAndScan_ = function(newDirContents,
}.bind(this);
// Clear the table, and start scanning.
- this.fileSystemMetadata_.clearAllCache();
+ this.metadataModel_.clearAllCache();
cr.dispatchSimpleEvent(this, 'scan-started');
var fileList = this.getFileList();
fileList.splice(0, fileList.length);
@@ -844,7 +844,7 @@ DirectoryModel.prototype.createDirectory = function(name,
then(function(newEntry) {
// Refresh the cache.
- this.fileSystemMetadata_.notifyEntriesCreated([newEntry]);
+ this.metadataModel_.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