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

Unified Diff: chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_dialog.js

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 years, 11 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/clear_browsing_data_dialog/clear_browsing_data_dialog.js
diff --git a/chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_dialog.js b/chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_dialog.js
index 5c8d55722aeff98d7b8e3bde1df11083fb4a7bb0..b449ef41eb3e209c2dfe04c408056c7c1918f535 100644
--- a/chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_dialog.js
+++ b/chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_dialog.js
@@ -29,7 +29,7 @@ Polymer({
counters_: {
type: Object,
value: {
- // Will be filled as results are reported.
+ // Will be filled as results are reported.
}
},
@@ -68,12 +68,9 @@ Polymer({
/** @override */
ready: function() {
this.$.clearFrom.menuOptions = this.clearFromOptions_;
+ this.addWebUIListener('update-footer', this.updateFooter_.bind(this));
this.addWebUIListener(
- 'update-footer',
- this.updateFooter_.bind(this));
- this.addWebUIListener(
- 'update-counter-text',
- this.updateCounterText_.bind(this));
+ 'update-counter-text', this.updateCounterText_.bind(this));
},
/** @override */
@@ -121,17 +118,17 @@ Polymer({
this.clearingInProgress_ = true;
this.browserProxy_.clearBrowsingData().then(
- /**
- * @param {boolean} shouldShowNotice Whether we should show the notice
- * about other forms of browsing history before closing the dialog.
- */
- function(shouldShowNotice) {
- this.clearingInProgress_ = false;
- this.showHistoryDeletionDialog_ = shouldShowNotice;
-
- if (!shouldShowNotice)
- this.$.dialog.close();
- }.bind(this));
+ /**
+ * @param {boolean} shouldShowNotice Whether we should show the notice
+ * about other forms of browsing history before closing the dialog.
+ */
+ function(shouldShowNotice) {
+ this.clearingInProgress_ = false;
+ this.showHistoryDeletionDialog_ = shouldShowNotice;
+
+ if (!shouldShowNotice)
+ this.$.dialog.close();
+ }.bind(this));
},
/** @private */

Powered by Google App Engine
This is Rietveld 408576698