Commit af5a3c3b authored by Joel Hockey's avatar Joel Hockey Committed by Commit Bot

Disable crostini backup restore when disabled by policy

Ensure route for /crostini/exportImport is not added
when backup and restore is disabled by policy.

Bug: 1003944
Change-Id: I9c88d038e928948e5bea2363592612097bf42d9a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1809122Reviewed-by: default avatarDemetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Joel Hockey <joelhockey@chromium.org>
Auto-Submit: Joel Hockey <joelhockey@chromium.org>
Cr-Commit-Position: refs/heads/master@{#697423}
parent c3d5f1dd
...@@ -465,8 +465,11 @@ cr.define('settings', function() { ...@@ -465,8 +465,11 @@ cr.define('settings', function() {
loadTimeData.getBoolean('showCrostini')) { loadTimeData.getBoolean('showCrostini')) {
r.CROSTINI = r.BASIC.createSection('/crostini', 'crostini'); r.CROSTINI = r.BASIC.createSection('/crostini', 'crostini');
r.CROSTINI_DETAILS = r.CROSTINI.createChild('/crostini/details'); r.CROSTINI_DETAILS = r.CROSTINI.createChild('/crostini/details');
r.CROSTINI_EXPORT_IMPORT = if (loadTimeData.valueExists('showCrostiniExportImport') &&
r.CROSTINI_DETAILS.createChild('/crostini/exportImport'); loadTimeData.getBoolean('showCrostiniExportImport')) {
r.CROSTINI_EXPORT_IMPORT =
r.CROSTINI_DETAILS.createChild('/crostini/exportImport');
}
r.CROSTINI_SHARED_PATHS = r.CROSTINI_SHARED_PATHS =
r.CROSTINI_DETAILS.createChild('/crostini/sharedPaths'); r.CROSTINI_DETAILS.createChild('/crostini/sharedPaths');
r.CROSTINI_SHARED_USB_DEVICES = r.CROSTINI_SHARED_USB_DEVICES =
......
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