| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 /** @private */ | 88 /** @private */ |
| 89 onClearBrowsingDataTap_: function() { | 89 onClearBrowsingDataTap_: function() { |
| 90 settings.navigateTo(settings.Route.CLEAR_BROWSER_DATA); | 90 settings.navigateTo(settings.Route.CLEAR_BROWSER_DATA); |
| 91 }, | 91 }, |
| 92 | 92 |
| 93 /** @private */ | 93 /** @private */ |
| 94 onDialogClosed_: function() { | 94 onDialogClosed_: function() { |
| 95 settings.navigateToPreviousRoute(); | 95 settings.navigateToPreviousRoute(); |
| 96 }, | 96 }, |
| 97 | 97 |
| 98 /** @private */ |
| 99 onHelpTap_: function() { |
| 100 window.open( |
| 101 'https://support.google.com/chrome/?p=settings_manage_exceptions'); |
| 102 }, |
| 103 |
| 98 <if expr="_google_chrome and not chromeos"> | 104 <if expr="_google_chrome and not chromeos"> |
| 99 /** @private */ | 105 /** @private */ |
| 100 onMetricsReportingCheckboxTap_: function() { | 106 onMetricsReportingCheckboxTap_: function() { |
| 101 var browserProxy = settings.PrivacyPageBrowserProxyImpl.getInstance(); | 107 var browserProxy = settings.PrivacyPageBrowserProxyImpl.getInstance(); |
| 102 var enabled = this.$.metricsReportingCheckbox.checked; | 108 var enabled = this.$.metricsReportingCheckbox.checked; |
| 103 browserProxy.setMetricsReportingEnabled(enabled); | 109 browserProxy.setMetricsReportingEnabled(enabled); |
| 104 }, | 110 }, |
| 105 | 111 |
| 106 /** | 112 /** |
| 107 * @param {!MetricsReporting} metricsReporting | 113 * @param {!MetricsReporting} metricsReporting |
| (...skipping 22 matching lines...) Expand all Loading... |
| 130 * The sub-page title for the site or content settings. | 136 * The sub-page title for the site or content settings. |
| 131 * @return {string} | 137 * @return {string} |
| 132 * @private | 138 * @private |
| 133 */ | 139 */ |
| 134 siteSettingsPageTitle_: function() { | 140 siteSettingsPageTitle_: function() { |
| 135 return loadTimeData.getBoolean('enableSiteSettings') ? | 141 return loadTimeData.getBoolean('enableSiteSettings') ? |
| 136 loadTimeData.getString('siteSettings') : | 142 loadTimeData.getString('siteSettings') : |
| 137 loadTimeData.getString('contentSettings'); | 143 loadTimeData.getString('contentSettings'); |
| 138 }, | 144 }, |
| 139 }); | 145 }); |
| OLD | NEW |