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

Unified Diff: ui/file_manager/gallery/js/gallery.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
« no previous file with comments | « ui/file_manager/gallery/js/compiled_resources.gyp ('k') | ui/file_manager/gallery/js/gallery_data_model.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/gallery/js/gallery.js
diff --git a/ui/file_manager/gallery/js/gallery.js b/ui/file_manager/gallery/js/gallery.js
index d2b8ec4a5c4cd238f3771861632a32ae0714d3b4..3ed781726c8ecd712d72aea52728693581152a4f 100644
--- a/ui/file_manager/gallery/js/gallery.js
+++ b/ui/file_manager/gallery/js/gallery.js
@@ -53,10 +53,10 @@ function Gallery(volumeManager) {
this.metadataCache_ = this.context_.metadataCache;
this.volumeManager_ = volumeManager;
/**
- * @private {!FileSystemMetadata}
+ * @private {!MetadataModel}
* @const
*/
- this.fileSystemMetadata_ = new FileSystemMetadata(volumeManager);
+ this.metadataModel_ = MetadataModel.create(volumeManager);
this.selectedEntry_ = null;
this.metadataCacheObserverId_ = null;
this.onExternallyUnmountedBound_ = this.onExternallyUnmounted_.bind(this);
@@ -64,7 +64,7 @@ function Gallery(volumeManager) {
this.dataModel_ = new GalleryDataModel(
this.context_.metadataCache,
- this.fileSystemMetadata_);
+ this.metadataModel_);
var downloadVolumeInfo = this.volumeManager_.getCurrentProfileVolumeInfo(
VolumeManagerCommon.VolumeType.DOWNLOADS);
downloadVolumeInfo.resolveDisplayRoot().then(function(entry) {
@@ -392,7 +392,7 @@ Gallery.prototype.loadInternal_ = function(entries, selectedEntries) {
locationInfo,
clonedMetadata,
self.metadataCache_,
- self.fileSystemMetadata_,
+ self.metadataModel_,
/* original */ true));
});
self.dataModel_.push.apply(self.dataModel_, items);
« no previous file with comments | « ui/file_manager/gallery/js/compiled_resources.gyp ('k') | ui/file_manager/gallery/js/gallery_data_model.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698