| Index: chrome/browser/resources/settings/privacy_page/privacy_page.js
|
| diff --git a/chrome/browser/resources/settings/privacy_page/privacy_page.js b/chrome/browser/resources/settings/privacy_page/privacy_page.js
|
| index 825633f929ffc159ac677f3a70cc9916a6b7c954..664cc2aa5beb031531f9e1406c0af150c2c6688f 100644
|
| --- a/chrome/browser/resources/settings/privacy_page/privacy_page.js
|
| +++ b/chrome/browser/resources/settings/privacy_page/privacy_page.js
|
| @@ -111,6 +111,37 @@ Polymer({
|
| settings.getCurrentRoute() == settings.Route.CLEAR_BROWSER_DATA;
|
| },
|
|
|
| + /**
|
| + * Handles the change event for the do-not-track toggle. Shows a
|
| + * confirmation dialog.
|
| + * @param {Event} event
|
| + * @private
|
| + */
|
| + onDoNotTrackChange_: function(event) {
|
| + this.$.confirmDoNotTrackDialog.showModal();
|
| + },
|
| +
|
| + /**
|
| + * Handles the shared proxy confirmation dialog 'Confirm' button.
|
| + * @private
|
| + */
|
| + onDoNotTrackDialogConfirm_: function() {
|
| + /** @type {!SettingsToggleButtonElement} */ (this.$.doNotTrack)
|
| + .sendPrefChange();
|
| + this.$.confirmDoNotTrackDialog.close();
|
| + },
|
| +
|
| + /**
|
| + * Handles the shared proxy confirmation dialog 'Cancel' button or a cancel
|
| + * event.
|
| + * @private
|
| + */
|
| + onDoNotTrackDialogCancel_: function() {
|
| + /** @type {!SettingsToggleButtonElement} */ (this.$.doNotTrack)
|
| + .resetToPrefValue();
|
| + this.$.confirmDoNotTrackDialog.close();
|
| + },
|
| +
|
| /** @private */
|
| onManageCertificatesTap_: function() {
|
| // <if expr="use_nss_certs">
|
|
|