| Index: chrome/browser/resources/options/sync_setup_overlay.js
|
| diff --git a/chrome/browser/resources/options/sync_setup_overlay.js b/chrome/browser/resources/options/sync_setup_overlay.js
|
| index fb439c46bb415b8a1fa882a462fb13c4dbce2e57..801ea9e29afadd24189ea07ac8476e648f246e27 100644
|
| --- a/chrome/browser/resources/options/sync_setup_overlay.js
|
| +++ b/chrome/browser/resources/options/sync_setup_overlay.js
|
| @@ -58,10 +58,6 @@ cr.define('options', function() {
|
| self.sendCredentialsAndClose_();
|
| return false;
|
| };
|
| - $('choose-data-types-form').onsubmit = function() {
|
| - self.sendConfiguration_();
|
| - return false;
|
| - };
|
| $('google-option').onchange = $('explicit-option').onchange = function() {
|
| self.onPassphraseRadioChanged_();
|
| };
|
| @@ -375,6 +371,13 @@ cr.define('options', function() {
|
| this.resetPage_('sync-setup-configure');
|
| $('sync-setup-configure').hidden = false;
|
|
|
| + // onsubmit is changed when submitting a passphrase. Reset it to its
|
| + // default.
|
| + $('choose-data-types-form').onsubmit = function() {
|
| + self.sendConfiguration_();
|
| + return false;
|
| + };
|
| +
|
| if (args) {
|
| if (!args['encryptionEnabled'])
|
| $('customize-sync-encryption').hidden = true;
|
|
|