| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 value: NetworkPredictionOptions, | 94 value: NetworkPredictionOptions, |
| 95 }, | 95 }, |
| 96 | 96 |
| 97 /** @private */ | 97 /** @private */ |
| 98 enableSafeBrowsingSubresourceFilter_: { | 98 enableSafeBrowsingSubresourceFilter_: { |
| 99 type: Boolean, | 99 type: Boolean, |
| 100 value: function() { | 100 value: function() { |
| 101 return loadTimeData.getBoolean('enableSafeBrowsingSubresourceFilter'); | 101 return loadTimeData.getBoolean('enableSafeBrowsingSubresourceFilter'); |
| 102 } | 102 } |
| 103 }, | 103 }, |
| 104 |
| 105 /** @private {!Map<string, string>} */ |
| 106 focusConfig_: { |
| 107 type: Object, |
| 108 value: function() { |
| 109 var map = new Map(); |
| 110 // <if expr="use_nss_certs"> |
| 111 map.set( |
| 112 settings.Route.CERTIFICATES.path, |
| 113 '#manageCertificates .subpage-arrow'); |
| 114 // </if> |
| 115 map.set( |
| 116 settings.Route.SITE_SETTINGS.path, |
| 117 '#site-settings-subpage-trigger .subpage-arrow'); |
| 118 return map; |
| 119 }, |
| 120 }, |
| 104 }, | 121 }, |
| 105 | 122 |
| 106 listeners: { | 123 listeners: { |
| 107 'doNotTrackDialogIf.dom-change': 'onDoNotTrackDomChange_', | 124 'doNotTrackDialogIf.dom-change': 'onDoNotTrackDomChange_', |
| 108 }, | 125 }, |
| 109 | 126 |
| 110 ready: function() { | 127 ready: function() { |
| 111 this.ContentSettingsTypes = settings.ContentSettingsTypes; | 128 this.ContentSettingsTypes = settings.ContentSettingsTypes; |
| 112 | 129 |
| 113 this.browserProxy_ = settings.PrivacyPageBrowserProxyImpl.getInstance(); | 130 this.browserProxy_ = settings.PrivacyPageBrowserProxyImpl.getInstance(); |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 : this.i18n('siteSettingsBlocked'); | 339 : this.i18n('siteSettingsBlocked'); |
| 323 }, | 340 }, |
| 324 | 341 |
| 325 /** @private */ | 342 /** @private */ |
| 326 getProtectedContentIdentifiersLabel_: function(value) { | 343 getProtectedContentIdentifiersLabel_: function(value) { |
| 327 return value ? this.i18n('siteSettingsProtectedContentEnableIdentifiers') | 344 return value ? this.i18n('siteSettingsProtectedContentEnableIdentifiers') |
| 328 : this.i18n('siteSettingsBlocked'); | 345 : this.i18n('siteSettingsBlocked'); |
| 329 }, | 346 }, |
| 330 }); | 347 }); |
| 331 })(); | 348 })(); |
| OLD | NEW |