Commit d0f399aa authored by haitaol's avatar haitaol Committed by Commit bot

Hide delete-profile checkbox when profile deletion is forbidden.

BUG=408446,413226
TBR=tim@chromium.org

Review URL: https://codereview.chromium.org/552393003

Cr-Commit-Position: refs/heads/master@{#294471}
parent 765ca9d1
...@@ -70,6 +70,14 @@ cr.define('options', function() { ...@@ -70,6 +70,14 @@ cr.define('options', function() {
Page.prototype.initializePage.call(this); Page.prototype.initializePage.call(this);
var self = this; var self = this;
// If 'profilesInfo' doesn't exist, it's forbidden to delete profile.
// So don't display the delete-profile checkbox.
if (!loadTimeData.valueExists('profilesInfo') &&
$('sync-setup-delete-profile')) {
$('sync-setup-delete-profile').hidden = true;
}
$('basic-encryption-option').onchange = $('basic-encryption-option').onchange =
$('full-encryption-option').onchange = function() { $('full-encryption-option').onchange = function() {
self.onEncryptionRadioChanged_(); self.onEncryptionRadioChanged_();
......
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