| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 /** | 86 /** |
| 87 * Used for HTML bindings. This is defined as a property rather than within | 87 * Used for HTML bindings. This is defined as a property rather than within |
| 88 * the ready callback, because the value needs to be available before | 88 * the ready callback, because the value needs to be available before |
| 89 * local DOM initialization - otherwise, the toggle has unexpected behavior. | 89 * local DOM initialization - otherwise, the toggle has unexpected behavior. |
| 90 * @private | 90 * @private |
| 91 */ | 91 */ |
| 92 networkPredictionEnum_: { | 92 networkPredictionEnum_: { |
| 93 type: Object, | 93 type: Object, |
| 94 value: NetworkPredictionOptions, | 94 value: NetworkPredictionOptions, |
| 95 }, | 95 }, |
| 96 |
| 97 /** @private */ |
| 98 enableSafeBrowsingSubresourceFilter_: { |
| 99 type: Boolean, |
| 100 value: function() { |
| 101 return loadTimeData.getBoolean('enableSafeBrowsingSubresourceFilter'); |
| 102 } |
| 103 }, |
| 96 }, | 104 }, |
| 97 | 105 |
| 98 listeners: { | 106 listeners: { |
| 99 'doNotTrackDialogIf.dom-change': 'onDoNotTrackDomChange_', | 107 'doNotTrackDialogIf.dom-change': 'onDoNotTrackDomChange_', |
| 100 }, | 108 }, |
| 101 | 109 |
| 102 ready: function() { | 110 ready: function() { |
| 103 this.ContentSettingsTypes = settings.ContentSettingsTypes; | 111 this.ContentSettingsTypes = settings.ContentSettingsTypes; |
| 104 | 112 |
| 105 this.browserProxy_ = settings.PrivacyPageBrowserProxyImpl.getInstance(); | 113 this.browserProxy_ = settings.PrivacyPageBrowserProxyImpl.getInstance(); |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 : this.i18n('siteSettingsBlocked'); | 321 : this.i18n('siteSettingsBlocked'); |
| 314 }, | 322 }, |
| 315 | 323 |
| 316 /** @private */ | 324 /** @private */ |
| 317 getProtectedContentIdentifiersLabel_: function(value) { | 325 getProtectedContentIdentifiersLabel_: function(value) { |
| 318 return value ? this.i18n('siteSettingsProtectedContentEnableIdentifiers') | 326 return value ? this.i18n('siteSettingsProtectedContentEnableIdentifiers') |
| 319 : this.i18n('siteSettingsBlocked'); | 327 : this.i18n('siteSettingsBlocked'); |
| 320 }, | 328 }, |
| 321 }); | 329 }); |
| 322 })(); | 330 })(); |
| OLD | NEW |