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

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

Issue 1789593002: Files app: Loading detailed information for single file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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/metadata_update_controller.js
diff --git a/ui/file_manager/file_manager/foreground/js/metadata_update_controller.js b/ui/file_manager/file_manager/foreground/js/metadata_update_controller.js
index 08b346566c614fa1fe5a496eadb738ffaebb3f86..0c4852342a2ce3093364c72c44431273ff40d0b0 100644
--- a/ui/file_manager/file_manager/foreground/js/metadata_update_controller.js
+++ b/ui/file_manager/file_manager/foreground/js/metadata_update_controller.js
@@ -5,12 +5,14 @@
/**
* Controller for list contents update.
* @param {!ListContainer} listContainer
+ * @param {!DetailsContainer} detailsContainer
* @param {!DirectoryModel} directoryModel
* @param {!MetadataModel} metadataModel
* @constructor
* @struct
*/
function MetadataUpdateController(listContainer,
+ detailsContainer,
directoryModel,
metadataModel) {
/**
@@ -31,6 +33,12 @@ function MetadataUpdateController(listContainer,
*/
this.listContainer_ = listContainer;
+ /**
+ * @private {!DetailsContainer}
+ * @const
+ */
+ this.detailsContainer_ = detailsContainer;
+
chrome.fileManagerPrivate.onPreferencesChanged.addListener(
this.onPreferencesChanged_.bind(this));
this.onPreferencesChanged_();
@@ -110,6 +118,7 @@ MetadataUpdateController.prototype.onPreferencesChanged_ = function() {
chrome.fileManagerPrivate.getPreferences(function(prefs) {
var use12hourClock = !prefs.use24hourClock;
this.listContainer_.table.setDateTimeFormat(use12hourClock);
+ this.detailsContainer_.setDateTimeFormat(use12hourClock);
this.refreshCurrentDirectoryMetadata();
}.bind(this));
};

Powered by Google App Engine
This is Rietveld 408576698