Commit 3e92d52f authored by Luciano Pacheco's avatar Luciano Pacheco Committed by Commit Bot

Files app: Optionally add class files-ng to the document.body

Bug: 992821
Change-Id: Ie5aa584a617de40288d057544834bf4cc630515c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1918788Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Commit-Queue: Luciano Pacheco <lucmult@chromium.org>
Auto-Submit: Luciano Pacheco <lucmult@chromium.org>
Cr-Commit-Position: refs/heads/master@{#715614}
parent 52b8dcce
...@@ -1397,6 +1397,14 @@ util.isFeedbackPanelEnabled = () => { ...@@ -1397,6 +1397,14 @@ util.isFeedbackPanelEnabled = () => {
return loadTimeData.getBoolean('FEEDBACK_PANEL_ENABLED'); return loadTimeData.getBoolean('FEEDBACK_PANEL_ENABLED');
}; };
/**
* Returns true when FilesNG is enabled.
* @return {boolean}
*/
util.isFilesNg = () => {
return loadTimeData.getBoolean('FILES_NG_ENABLED');
};
/** /**
* Retrieves all entries inside the given |rootEntry|. * Retrieves all entries inside the given |rootEntry|.
* @param {!DirectoryEntry} rootEntry * @param {!DirectoryEntry} rootEntry
......
...@@ -757,6 +757,9 @@ class FileManager extends cr.EventTarget { ...@@ -757,6 +757,9 @@ class FileManager extends cr.EventTarget {
metrics.recordInterval('Load.InitDocuments'); metrics.recordInterval('Load.InitDocuments');
metrics.startInterval('Load.InitUI'); metrics.startInterval('Load.InitUI');
if (util.isFilesNg()) {
this.dialogDom_.classList.add('files-ng');
}
this.initEssentialUI_(); this.initEssentialUI_();
this.initAdditionalUI_(); this.initAdditionalUI_();
await this.initSettingsPromise_; await this.initSettingsPromise_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment