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

Unified Diff: ui/file_manager/file_manager/foreground/js/dialog_action_controller.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/dialog_action_controller.js
diff --git a/ui/file_manager/file_manager/foreground/js/dialog_action_controller.js b/ui/file_manager/file_manager/foreground/js/dialog_action_controller.js
index 0505c5d3b0c64ef9d9c80031d04c26bb28dbbf01..aa49006ad8202b2af5420e36331d1ee5ec08591a 100644
--- a/ui/file_manager/file_manager/foreground/js/dialog_action_controller.js
+++ b/ui/file_manager/file_manager/foreground/js/dialog_action_controller.js
@@ -9,7 +9,7 @@
* @param {DialogType} dialogType Dialog type.
* @param {!DialogFooter} dialogFooter Dialog footer.
* @param {!DirectoryModel} directoryModel Directory model.
- * @param {!FileSystemMetadata} fileSystemMetadata Metadata cache.
+ * @param {!MetadataModel} metadataModel Metadata cache.
* @param {!VolumeManagerWrapper} volumeManager Volume manager.
* @param {!FileFilter} fileFilter File filter model.
* @param {!NamingController} namingController Naming controller.
@@ -23,7 +23,7 @@ function DialogActionController(
dialogType,
dialogFooter,
directoryModel,
- fileSystemMetadata,
+ metadataModel,
volumeManager,
fileFilter,
namingController,
@@ -51,11 +51,11 @@ function DialogActionController(
this.directoryModel_ = directoryModel;
/**
- * @type {!FileSystemMetadata}
+ * @type {!MetadataModel}
* @const
* @private
*/
- this.fileSystemMetadata_ = fileSystemMetadata;
+ this.metadataModel_ = metadataModel;
/**
* @type {!VolumeManagerWrapper}
@@ -369,7 +369,7 @@ DialogActionController.prototype.selectFilesAndClose_ = function(selection) {
// TODO(mtomasz): Use Entry instead of URLs, if possible.
util.URLsToEntries(selection.urls, function(entries) {
- this.fileSystemMetadata_.get(entries, ['present']).then(onProperties);
+ this.metadataModel_.get(entries, ['present']).then(onProperties);
}.bind(this));
};

Powered by Google App Engine
This is Rietveld 408576698