Commit 42546719 authored by Luciano Pacheco's avatar Luciano Pacheco Committed by Chromium LUCI CQ

Files app: Add flag FilesJsModules to JS

Bug: 1133186
Change-Id: I9a26f72fc24f4fe49c160120ebca3f4cf22f0ce3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2636005
Commit-Queue: Luciano Pacheco <lucmult@chromium.org>
Commit-Queue: Jeremie Boulic <jboulic@chromium.org>
Auto-Submit: Luciano Pacheco <lucmult@chromium.org>
Reviewed-by: default avatarJeremie Boulic <jboulic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#844629}
parent 275b156b
......@@ -1061,6 +1061,9 @@ void AddFileManagerFeatureStrings(const std::string& locale,
dict->SetBoolean("FILES_SINGLE_PARTITION_FORMAT_ENABLED",
base::FeatureList::IsEnabled(
chromeos::features::kFilesSinglePartitionFormat));
dict->SetBoolean(
"FILES_JS_MODULES_ENABLED",
base::FeatureList::IsEnabled(chromeos::features::kFilesJsModules));
dict->SetBoolean(
"AUDIO_PLAYER_JS_MODULES_ENABLED",
base::FeatureList::IsEnabled(chromeos::features::kAudioPlayerJsModules));
......
......@@ -1491,6 +1491,14 @@ util.isSinglePartitionFormatEnabled = () => {
return loadTimeData.getBoolean('FILES_SINGLE_PARTITION_FORMAT_ENABLED');
};
/**
* Returns true if flag is enabled.
* @return {boolean}
*/
util.isFilesJsModulesEnabled = () => {
return loadTimeData.getBoolean('FILES_JS_MODULES_ENABLED');
};
/**
* Returns true if flag is enabled.
* @return {boolean}
......
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