| 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 381b54fa47a5c5139a48b213d48722df2b386254..ef9144197c1eb4de0c4f08f441b4045557a3e641 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
|
| @@ -49,8 +49,12 @@ Polymer({
|
| this.addWebUIListener(
|
| 'browsing-history-pref-changed',
|
| this.setAllowDeletingHistory_.bind(this));
|
| + this.addWebUIListener(
|
| + 'update-footer',
|
| + this.updateFooter_.bind(this));
|
| this.browserProxy_ =
|
| settings.ClearBrowsingDataBrowserProxyImpl.getInstance();
|
| + this.browserProxy_.initialize();
|
| },
|
|
|
| /**
|
| @@ -66,6 +70,19 @@ Polymer({
|
| }
|
| },
|
|
|
| + /**
|
| + * Updates the footer to show only those sentences that are relevant to this
|
| + * user.
|
| + * @param {boolean} syncing Whether the user is syncing data.
|
| + * @param {boolean} otherFormsOfBrowsingHistory Whether the user has other
|
| + * forms of browsing history in their account.
|
| + * @private
|
| + */
|
| + updateFooter_: function(syncing, otherFormsOfBrowsingHistory) {
|
| + this.$.googleFooter.hidden = !otherFormsOfBrowsingHistory;
|
| + this.$.syncedDataSentence.hidden = !syncing;
|
| + },
|
| +
|
| open: function() {
|
| this.$.dialog.open();
|
| },
|
|
|