| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * 'settings-privacy-page' is the settings page containing privacy and | 7 * 'settings-privacy-page' is the settings page containing privacy and |
| 8 * security settings. | 8 * security settings. |
| 9 */ | 9 */ |
| 10 Polymer({ | 10 Polymer({ |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 settings.navigateTo(settings.Route.SITE_SETTINGS); | 75 settings.navigateTo(settings.Route.SITE_SETTINGS); |
| 76 }, | 76 }, |
| 77 | 77 |
| 78 /** @private */ | 78 /** @private */ |
| 79 onClearBrowsingDataTap_: function() { | 79 onClearBrowsingDataTap_: function() { |
| 80 settings.navigateTo(settings.Route.CLEAR_BROWSER_DATA); | 80 settings.navigateTo(settings.Route.CLEAR_BROWSER_DATA); |
| 81 }, | 81 }, |
| 82 | 82 |
| 83 /** @private */ | 83 /** @private */ |
| 84 onDialogClosed_: function() { | 84 onDialogClosed_: function() { |
| 85 settings.navigateTo(settings.Route.PRIVACY); | 85 settings.navigateToPreviousRoute(); |
| 86 }, | 86 }, |
| 87 | 87 |
| 88 <if expr="_google_chrome and not chromeos"> | 88 <if expr="_google_chrome and not chromeos"> |
| 89 /** @private */ | 89 /** @private */ |
| 90 onMetricsReportingCheckboxTap_: function() { | 90 onMetricsReportingCheckboxTap_: function() { |
| 91 var browserProxy = settings.PrivacyPageBrowserProxyImpl.getInstance(); | 91 var browserProxy = settings.PrivacyPageBrowserProxyImpl.getInstance(); |
| 92 var enabled = this.$.metricsReportingCheckbox.checked; | 92 var enabled = this.$.metricsReportingCheckbox.checked; |
| 93 browserProxy.setMetricsReportingEnabled(enabled); | 93 browserProxy.setMetricsReportingEnabled(enabled); |
| 94 }, | 94 }, |
| 95 | 95 |
| 96 /** | 96 /** |
| 97 * @param {!MetricsReporting} metricsReporting | 97 * @param {!MetricsReporting} metricsReporting |
| 98 * @private | 98 * @private |
| 99 */ | 99 */ |
| 100 setMetricsReporting_: function(metricsReporting) { | 100 setMetricsReporting_: function(metricsReporting) { |
| 101 this.metricsReporting_ = metricsReporting; | 101 this.metricsReporting_ = metricsReporting; |
| 102 }, | 102 }, |
| 103 </if> | 103 </if> |
| 104 }); | 104 }); |
| OLD | NEW |