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

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

Issue 2065933005: Quick View: Format metadata. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 6 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 448d94fd35e81ee2c2d7e5db97111ce5ea9b4075..2ac4b44ea34d736e58e7865f6ff0af1cb77ce29a 100644
--- a/ui/file_manager/file_manager/foreground/js/file_manager.js
+++ b/ui/file_manager/file_manager/foreground/js/file_manager.js
@@ -58,6 +58,11 @@ function FileManager() {
this.metadataModel_ = null;
/**
+ * @private {!FileMetadataFormatter}
+ */
+ this.fileMetadataFormatter_ = new FileMetadataFormatter();
+
+ /**
* @private {ThumbnailModel}
*/
this.thumbnailModel_ = null;
@@ -560,7 +565,7 @@ FileManager.prototype = /** @struct */ {
fileListSelectionModel);
this.metadataBoxController_ = new MetadataBoxController(
this.metadataModel_, quickView.getFilesMetadataBox(),
- quickView, this.quickViewModel_);
+ quickView, this.quickViewModel_, this.fileMetadataFormatter_);
}
}.bind(this));
}
@@ -1031,7 +1036,8 @@ FileManager.prototype = /** @struct */ {
this.ui_.listContainer,
assert(this.ui_.detailsContainer),
this.directoryModel_,
- this.metadataModel_);
+ this.metadataModel_,
+ this.fileMetadataFormatter_);
// Create task controller.
this.taskController_ = new TaskController(

Powered by Google App Engine
This is Rietveld 408576698