diff options
author | binji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-06 00:32:27 +0000 |
---|---|---|
committer | binji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-06 00:32:27 +0000 |
commit | cde0910bad4b7d8878a1979fbd178764062a6b8d (patch) | |
tree | 699b16a05bb0e2f7e74f09bcd1126ff8ff90d949 /chrome/browser/resources/sync_setup_overlay.js | |
parent | 45172d7d6a0ee6e81bfdd8d08bc46abae32533c7 (diff) | |
download | chromium_src-cde0910bad4b7d8878a1979fbd178764062a6b8d.zip chromium_src-cde0910bad4b7d8878a1979fbd178764062a6b8d.tar.gz chromium_src-cde0910bad4b7d8878a1979fbd178764062a6b8d.tar.bz2 |
[Sync Setup UI] When syncing a pre-existing account using "encrypt everything",
don't reset this state when switching between advanced/non-advanced customization.
BUG=98625
TEST=sync to an account with encrypt everything. At the customization dialog, click the advanced link. The "encrypt everything" radio button should be selected.
Review URL: http://codereview.chromium.org/8135020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104212 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/sync_setup_overlay.js')
-rw-r--r-- | chrome/browser/resources/sync_setup_overlay.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/chrome/browser/resources/sync_setup_overlay.js b/chrome/browser/resources/sync_setup_overlay.js index ec0202f..995ad08 100644 --- a/chrome/browser/resources/sync_setup_overlay.js +++ b/chrome/browser/resources/sync_setup_overlay.js @@ -16,6 +16,9 @@ cr.define('options', function() { // True if the synced account uses a custom passphrase. var usePassphrase_ = false; + // True if the synced account uses 'encrypt everything'. + var useEncryptEverything_ = false; + /** * SyncSetupOverlay class * Encapsulated handling of the 'Sync Setup' overlay page. @@ -421,6 +424,8 @@ cr.define('options', function() { $('customize-sync-encryption').hidden = true; this.setCheckboxesAndErrors_(args); + this.useEncryptEverything_ = args['encryptAllData']; + // Whether to display the 'Sync everything' confirmation page or the // customize data types page. var syncAllDataTypes = args['syncAllDataTypes']; @@ -444,8 +449,10 @@ cr.define('options', function() { // The default state is to sync everything. this.setCheckboxesToKeepEverythingSynced_(true); - // Reset encryption settings to 'Encrypt passwords' - $('encrypt-sensitive-option').checked = true; + // Encrypt passwords is the default, but don't set it if the previously + // synced account is already set to encrypt everything. + if (!this.useEncryptEverything_) + $('encrypt-sensitive-option').checked = true; // If the account is not synced with a custom passphrase, reset the // passphrase radio when switching to the 'Sync everything' page. |