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

Unified Diff: chrome/browser/resources/settings/people_page/sync_page.js

Issue 2946563002: Run clang-format on .js files in c/b/r/settings (Closed)
Patch Set: dschuyler@ review Created 3 years, 6 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
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;

Powered by Google App Engine
This is Rietveld 408576698