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

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

Issue 971653003: Files.app: Extract cache part from NewMetadataProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix audio player. 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 1bb990a71e9a11abbb112bce566e571befe92efe..277a615303dd864741eeb08192341ee09cb4be5b 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,6 @@ 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 {!MetadataProviderCache} metadataProviderCache Metadata cache.
* @param {!FileSystemMetadata} fileSystemMetadata Metadata model.
* service.
* @param {VolumeManagerWrapper} volumeManager The volume manager.
@@ -23,7 +22,7 @@ var SHORT_RESCAN_INTERVAL = 100;
* @extends {cr.EventTarget}
*/
function DirectoryModel(singleSelection, fileFilter,
- metadataProviderCache, fileSystemMetadata,
+ fileSystemMetadata,
volumeManager, fileOperationManager) {
this.fileListSelection_ = singleSelection ?
new cr.ui.ListSingleSelectionModel() : new cr.ui.ListSelectionModel();
@@ -47,7 +46,6 @@ function DirectoryModel(singleSelection, fileFilter,
this.currentDirContents_ =
DirectoryContents.createForDirectory(this.currentFileListContext_, null);
- this.metadataProviderCache_ = metadataProviderCache;
this.fileSystemMetadata_ = fileSystemMetadata;
this.volumeManager_ = volumeManager;
@@ -496,7 +494,7 @@ DirectoryModel.prototype.clearAndScan_ = function(newDirContents,
}.bind(this);
// Clear the table, and start scanning.
- this.metadataProviderCache_.clearAll();
+ this.fileSystemMetadata_.clearAllCache();
cr.dispatchSimpleEvent(this, 'scan-started');
var fileList = this.getFileList();
fileList.splice(0, fileList.length);
« no previous file with comments | « ui/file_manager/audio_player/js/audio_player.js ('k') | ui/file_manager/file_manager/foreground/js/file_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698