Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2179)

Unified Diff: chrome/browser/resources/sync_setup_overlay.js

Issue 552393003: Hide delete-profile checkbox when profile deletion is forbidden. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: check existence of checkbox Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/sync_setup_overlay.js
diff --git a/chrome/browser/resources/sync_setup_overlay.js b/chrome/browser/resources/sync_setup_overlay.js
index bb2f316437fa8ec2adb0ab8dad33baceaceaa893..6d6dc9dd3fdd1aeab1557f7f0de4e6bd90897b37 100644
--- a/chrome/browser/resources/sync_setup_overlay.js
+++ b/chrome/browser/resources/sync_setup_overlay.js
@@ -70,6 +70,14 @@ cr.define('options', function() {
Page.prototype.initializePage.call(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 =
$('full-encryption-option').onchange = function() {
self.onEncryptionRadioChanged_();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698