| 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 * Example: | 10 * Example: |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 ready: function() { | 39 ready: function() { |
| 40 this.ContentSettingsTypes = settings.ContentSettingsTypes; | 40 this.ContentSettingsTypes = settings.ContentSettingsTypes; |
| 41 }, | 41 }, |
| 42 | 42 |
| 43 /** @private */ | 43 /** @private */ |
| 44 onManageCertificatesTap_: function() { | 44 onManageCertificatesTap_: function() { |
| 45 <if expr="use_nss_certs"> | 45 <if expr="use_nss_certs"> |
| 46 this.$.pages.setSubpageChain(['manage-certificates']); | 46 this.$.pages.setSubpageChain(['manage-certificates']); |
| 47 </if> | 47 </if> |
| 48 <if expr="not use_nss_certs"> | 48 <if expr="is_win or is_macosx"> |
| 49 // TODO(dpapad): Launch native certificate manager here. | 49 settings.PrivacyPageBrowserProxyImpl.getInstance(). |
| 50 showManageSSLCertificates(); |
| 50 </if> | 51 </if> |
| 51 }, | 52 }, |
| 52 | 53 |
| 53 /** @private */ | 54 /** @private */ |
| 54 onSiteSettingsTap_: function() { | 55 onSiteSettingsTap_: function() { |
| 55 this.$.pages.setSubpageChain(['site-settings']); | 56 this.$.pages.setSubpageChain(['site-settings']); |
| 56 }, | 57 }, |
| 57 | 58 |
| 58 /** @private */ | 59 /** @private */ |
| 59 onClearBrowsingDataTap_: function() { | 60 onClearBrowsingDataTap_: function() { |
| 60 this.$.pages.querySelector('settings-clear-browsing-data-dialog').open(); | 61 this.$.pages.querySelector('settings-clear-browsing-data-dialog').open(); |
| 61 }, | 62 }, |
| 62 }); | 63 }); |
| OLD | NEW |