| 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 (function() { | 10 (function() { |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 /** | 80 /** |
| 81 * Used for HTML bindings. This is defined as a property rather than within | 81 * Used for HTML bindings. This is defined as a property rather than within |
| 82 * the ready callback, because the value needs to be available before | 82 * the ready callback, because the value needs to be available before |
| 83 * local DOM initialization - otherwise, the toggle has unexpected behavior. | 83 * local DOM initialization - otherwise, the toggle has unexpected behavior. |
| 84 * @private | 84 * @private |
| 85 */ | 85 */ |
| 86 networkPredictionEnum_: { | 86 networkPredictionEnum_: { |
| 87 type: Object, | 87 type: Object, |
| 88 value: NetworkPredictionOptions, | 88 value: NetworkPredictionOptions, |
| 89 }, | 89 }, |
| 90 |
| 91 /** @private */ |
| 92 isSubresourceFilterVisible_: { |
| 93 type: Boolean, |
| 94 value: function() { |
| 95 return loadTimeData.getBoolean('isSubresourceFilterVisible'); |
| 96 } |
| 97 }, |
| 90 }, | 98 }, |
| 91 | 99 |
| 92 ready: function() { | 100 ready: function() { |
| 93 this.ContentSettingsTypes = settings.ContentSettingsTypes; | 101 this.ContentSettingsTypes = settings.ContentSettingsTypes; |
| 94 | 102 |
| 95 this.browserProxy_ = settings.PrivacyPageBrowserProxyImpl.getInstance(); | 103 this.browserProxy_ = settings.PrivacyPageBrowserProxyImpl.getInstance(); |
| 96 | 104 |
| 97 // <if expr="_google_chrome and not chromeos"> | 105 // <if expr="_google_chrome and not chromeos"> |
| 98 var setMetricsReportingPref = this.setMetricsReportingPref_.bind(this); | 106 var setMetricsReportingPref = this.setMetricsReportingPref_.bind(this); |
| 99 this.addWebUIListener('metrics-reporting-change', setMetricsReportingPref); | 107 this.addWebUIListener('metrics-reporting-change', setMetricsReportingPref); |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 : this.i18n('siteSettingsBlocked'); | 249 : this.i18n('siteSettingsBlocked'); |
| 242 }, | 250 }, |
| 243 | 251 |
| 244 /** @private */ | 252 /** @private */ |
| 245 getProtectedContentIdentifiersLabel_: function(value) { | 253 getProtectedContentIdentifiersLabel_: function(value) { |
| 246 return value ? this.i18n('siteSettingsProtectedContentEnableIdentifiers') | 254 return value ? this.i18n('siteSettingsProtectedContentEnableIdentifiers') |
| 247 : this.i18n('siteSettingsBlocked'); | 255 : this.i18n('siteSettingsBlocked'); |
| 248 }, | 256 }, |
| 249 }); | 257 }); |
| 250 })(); | 258 })(); |
| OLD | NEW |