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

Unified Diff: chrome/browser/resources/settings/reset_page/reset_profile_dialog.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/reset_page/reset_profile_dialog.js
diff --git a/chrome/browser/resources/settings/reset_page/reset_profile_dialog.js b/chrome/browser/resources/settings/reset_page/reset_profile_dialog.js
index 5328fe426527102c0e90f02dd2c70d9af6d3ac16..0e63dd8bb23676a1e167058fc33c204bfbacb02a 100644
--- a/chrome/browser/resources/settings/reset_page/reset_profile_dialog.js
+++ b/chrome/browser/resources/settings/reset_page/reset_profile_dialog.js
@@ -50,8 +50,8 @@ Polymer({
*/
getExplanationText_: function() {
if (this.isTriggered_) {
- return loadTimeData.getStringF('triggeredResetPageExplanation',
- this.triggeredResetToolName_);
+ return loadTimeData.getStringF(
+ 'triggeredResetPageExplanation', this.triggeredResetToolName_);
}
return loadTimeData.getStringF('resetPageExplanation');
},
@@ -62,8 +62,8 @@ Polymer({
*/
getPageTitle_: function() {
if (this.isTriggered_) {
- return loadTimeData.getStringF('triggeredResetPageTitle',
- this.triggeredResetToolName_);
+ return loadTimeData.getStringF(
+ 'triggeredResetPageTitle', this.triggeredResetToolName_);
}
return loadTimeData.getStringF('resetPageTitle');
},
@@ -76,12 +76,13 @@ Polymer({
this.browserProxy_.onHideResetProfileDialog();
}.bind(this));
- this.$$('paper-checkbox a').addEventListener(
- 'tap', this.onShowReportedSettingsTap_.bind(this));
+ this.$$('paper-checkbox a')
+ .addEventListener('tap', this.onShowReportedSettingsTap_.bind(this));
// Prevent toggling of the checkbox when hitting the "Enter" key on the
// link.
- this.$$('paper-checkbox a').addEventListener(
- 'keydown', function(e) { e.stopPropagation(); });
+ this.$$('paper-checkbox a').addEventListener('keydown', function(e) {
+ e.stopPropagation();
+ });
},
/** @private */
@@ -105,7 +106,8 @@ Polymer({
// reset request came from the Chrome Cleanup Tool by launching Chrome
// with the startup URL chrome://settings/resetProfileSettings#cct.
var origin = window.location.hash.slice(1).toLowerCase() == 'cct' ?
- 'cct' : settings.getQueryParameters().get('origin');
+ 'cct' :
+ settings.getQueryParameters().get('origin');
this.resetRequestOrigin_ = origin || '';
this.showDialog_();
}
@@ -119,13 +121,15 @@ Polymer({
/** @private */
onResetTap_: function() {
this.clearingInProgress_ = true;
- this.browserProxy_.performResetProfileSettings(
- this.$.sendSettings.checked, this.resetRequestOrigin_).then(function() {
- this.clearingInProgress_ = false;
- if (this.$.dialog.open)
- this.$.dialog.close();
- this.fire('reset-done');
- }.bind(this));
+ this.browserProxy_
+ .performResetProfileSettings(
+ this.$.sendSettings.checked, this.resetRequestOrigin_)
+ .then(function() {
+ this.clearingInProgress_ = false;
+ if (this.$.dialog.open)
+ this.$.dialog.close();
+ this.fire('reset-done');
+ }.bind(this));
},
/**
« no previous file with comments | « chrome/browser/resources/settings/reset_page/reset_page.js ('k') | chrome/browser/resources/settings/route.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698