Index: chrome/browser/resources/settings/people_page/sync_page.js |
diff --git a/chrome/browser/resources/settings/people_page/sync_page.js b/chrome/browser/resources/settings/people_page/sync_page.js |
index f40443683c14778d248e885168ac19ba116c5af8..35c3b47a0fad7d49314c9e2b2b85ddaed61a06d2 100644 |
--- a/chrome/browser/resources/settings/people_page/sync_page.js |
+++ b/chrome/browser/resources/settings/people_page/sync_page.js |
@@ -135,10 +135,10 @@ Polymer({ |
/** @override */ |
attached: function() { |
- this.addWebUIListener('page-status-changed', |
- this.handlePageStatusChanged_.bind(this)); |
- this.addWebUIListener('sync-prefs-changed', |
- this.handleSyncPrefsChanged_.bind(this)); |
+ this.addWebUIListener( |
+ 'page-status-changed', this.handlePageStatusChanged_.bind(this)); |
+ this.addWebUIListener( |
+ 'sync-prefs-changed', this.handleSyncPrefsChanged_.bind(this)); |
if (settings.getCurrentRoute() == settings.Route.SYNC) |
this.onNavigateToPage_(); |
@@ -260,8 +260,8 @@ Polymer({ |
*/ |
onSingleSyncDataTypeChanged_: function() { |
assert(this.syncPrefs); |
- this.browserProxy_.setSyncDatatypes(this.syncPrefs).then( |
- this.handlePageStatusChanged_.bind(this)); |
+ this.browserProxy_.setSyncDatatypes(this.syncPrefs) |
+ .then(this.handlePageStatusChanged_.bind(this)); |
}, |
/** @private */ |
@@ -274,8 +274,8 @@ Polymer({ |
* @private |
*/ |
onAutofillDataTypeChanged_: function() { |
- this.set('syncPrefs.paymentsIntegrationEnabled', |
- this.syncPrefs.autofillSynced); |
+ this.set( |
+ 'syncPrefs.paymentsIntegrationEnabled', this.syncPrefs.autofillSynced); |
this.onSingleSyncDataTypeChanged_(); |
}, |
@@ -313,8 +313,8 @@ Polymer({ |
this.syncPrefs.setNewPassphrase = true; |
this.syncPrefs.passphrase = this.passphrase_; |
- this.browserProxy_.setSyncEncryption(this.syncPrefs).then( |
- this.handlePageStatusChanged_.bind(this)); |
+ this.browserProxy_.setSyncEncryption(this.syncPrefs) |
+ .then(this.handlePageStatusChanged_.bind(this)); |
}, |
/** |
@@ -333,8 +333,8 @@ Polymer({ |
this.syncPrefs.passphrase = this.existingPassphrase_; |
this.existingPassphrase_ = ''; |
- this.browserProxy_.setSyncEncryption(this.syncPrefs).then( |
- this.handlePageStatusChanged_.bind(this)); |
+ this.browserProxy_.setSyncEncryption(this.syncPrefs) |
+ .then(this.handlePageStatusChanged_.bind(this)); |
}, |
/** |
@@ -354,8 +354,8 @@ Polymer({ |
settings.navigateTo(settings.Route.PEOPLE); |
return; |
case settings.PageStatus.PASSPHRASE_FAILED: |
- if (this.pageStatus_ == this.pages_.CONFIGURE && |
- this.syncPrefs && this.syncPrefs.passphraseRequired) { |
+ if (this.pageStatus_ == this.pages_.CONFIGURE && this.syncPrefs && |
+ this.syncPrefs.passphraseRequired) { |
this.$$('#existingPassphraseInput').invalid = true; |
} |
return; |