Commit bc46d348 authored by Omid Tourzan's avatar Omid Tourzan Committed by Commit Bot

[files-progress] Add util function to check transfer details flag.

Bug: 953308
Change-Id: Id81ab64bb319cc6be2e9aae2dbdb6bf1a04550c3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2306491
Commit-Queue: Omid Tourzan <oto@chromium.org>
Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#790019}
parent 1c6b231b
......@@ -1417,6 +1417,14 @@ util.isZipNoNacl = () => {
return loadTimeData.getBoolean('ZIP_NO_NACL');
};
/**
* Returns true if transfer details flag is enabled.
* @return {boolean}
*/
util.isTransferDetailsEnabled = () => {
return loadTimeData.getBoolean('FILES_TRANSFER_DETAILS_ENABLED');
};
/**
* Retrieves all entries inside the given |rootEntry|.
* @param {!DirectoryEntry} rootEntry
......
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