| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 this.addWebUIListener('metrics-reporting-change', boundSetMetricsReporting); | 49 this.addWebUIListener('metrics-reporting-change', boundSetMetricsReporting); |
| 50 | 50 |
| 51 var browserProxy = settings.PrivacyPageBrowserProxyImpl.getInstance(); | 51 var browserProxy = settings.PrivacyPageBrowserProxyImpl.getInstance(); |
| 52 browserProxy.getMetricsReporting().then(boundSetMetricsReporting); | 52 browserProxy.getMetricsReporting().then(boundSetMetricsReporting); |
| 53 </if> | 53 </if> |
| 54 }, | 54 }, |
| 55 | 55 |
| 56 /** @protected */ | 56 /** @protected */ |
| 57 currentRouteChanged: function() { | 57 currentRouteChanged: function() { |
| 58 this.showClearBrowsingDataDialog_ = | 58 this.showClearBrowsingDataDialog_ = |
| 59 settings.getCurrentRoute().dialog == 'clear-browsing-data'; | 59 settings.getCurrentRoute() == settings.Route.CLEAR_BROWSER_DATA; |
| 60 }, | 60 }, |
| 61 | 61 |
| 62 /** @private */ | 62 /** @private */ |
| 63 onManageCertificatesTap_: function() { | 63 onManageCertificatesTap_: function() { |
| 64 <if expr="use_nss_certs"> | 64 <if expr="use_nss_certs"> |
| 65 settings.navigateTo(settings.Route.CERTIFICATES); | 65 settings.navigateTo(settings.Route.CERTIFICATES); |
| 66 </if> | 66 </if> |
| 67 <if expr="is_win or is_macosx"> | 67 <if expr="is_win or is_macosx"> |
| 68 settings.PrivacyPageBrowserProxyImpl.getInstance(). | 68 settings.PrivacyPageBrowserProxyImpl.getInstance(). |
| 69 showManageSSLCertificates(); | 69 showManageSSLCertificates(); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 95 | 95 |
| 96 /** | 96 /** |
| 97 * @param {!MetricsReporting} metricsReporting | 97 * @param {!MetricsReporting} metricsReporting |
| 98 * @private | 98 * @private |
| 99 */ | 99 */ |
| 100 setMetricsReporting_: function(metricsReporting) { | 100 setMetricsReporting_: function(metricsReporting) { |
| 101 this.metricsReporting_ = metricsReporting; | 101 this.metricsReporting_ = metricsReporting; |
| 102 }, | 102 }, |
| 103 </if> | 103 </if> |
| 104 }); | 104 }); |
| OLD | NEW |