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

Unified Diff: ui/file_manager/file_manager/foreground/js/file_manager.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/file_manager.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_manager.js b/ui/file_manager/file_manager/foreground/js/file_manager.js
index 1d00a42503911a636405ec19b4ff5fdf588159b7..f18b932cb49c1c80decfb3bfea97025306f216e2 100644
--- a/ui/file_manager/file_manager/foreground/js/file_manager.js
+++ b/ui/file_manager/file_manager/foreground/js/file_manager.js
@@ -54,12 +54,6 @@ function FileManager() {
this.mediaImportHandler_ = null;
/**
- * @private {!MetadataProviderCache}
- * @const
- */
- this.metadataProviderCache_ = new MetadataProviderCache();
-
- /**
* @private {FileSystemMetadata}
*/
this.fileSystemMetadata_ = null;
@@ -694,9 +688,7 @@ FileManager.prototype = /** @struct */ {
// Create the metadata cache.
assert(this.volumeManager_);
- this.fileSystemMetadata_ = FileSystemMetadata.create(
- this.metadataProviderCache_,
- this.volumeManager_);
+ this.fileSystemMetadata_ = new FileSystemMetadata(this.volumeManager_);
this.thumbnailModel_ = new ThumbnailModel(this.fileSystemMetadata_);
// Create the root view of FileManager.
@@ -843,7 +835,6 @@ FileManager.prototype = /** @struct */ {
this.directoryModel_ = new DirectoryModel(
singleSelection,
this.fileFilter_,
- this.metadataProviderCache_,
this.fileSystemMetadata_,
this.volumeManager_,
this.fileOperationManager_);
@@ -887,7 +878,6 @@ FileManager.prototype = /** @struct */ {
this.metadataUpdateController_ = new MetadataUpdateController(
this.ui_.listContainer,
this.directoryModel_,
- this.metadataProviderCache_,
this.fileSystemMetadata_);
// Create task controller.

Powered by Google App Engine
This is Rietveld 408576698