| 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 */
|
|
|