| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 'settings-ca-trust-edit-dialog' allows the user to | 6 * @fileoverview 'settings-ca-trust-edit-dialog' allows the user to |
| 7 * - specify the trust level of a certificate authority that is being | 7 * - specify the trust level of a certificate authority that is being |
| 8 * imported. | 8 * imported. |
| 9 * - edit the trust level of an already existing certificate authority. | 9 * - edit the trust level of an already existing certificate authority. |
| 10 */ | 10 */ |
| 11 Polymer({ | 11 Polymer({ |
| 12 is: 'settings-ca-trust-edit-dialog', | 12 is: 'settings-ca-trust-edit-dialog', |
| 13 | 13 |
| 14 properties: { | 14 properties: { |
| 15 /** @private {!settings.CertificatesBrowserProxy} */ | |
| 16 browserProxy_: Object, | |
| 17 | |
| 18 /** @type {!CertificateSubnode|!NewCertificateSubNode} */ | 15 /** @type {!CertificateSubnode|!NewCertificateSubNode} */ |
| 19 model: Object, | 16 model: Object, |
| 20 | 17 |
| 21 /** @private {?CaTrustInfo} */ | 18 /** @private {?CaTrustInfo} */ |
| 22 trustInfo_: Object, | 19 trustInfo_: Object, |
| 23 | 20 |
| 24 /** @private {string} */ | 21 /** @private {string} */ |
| 25 explanationText_: String, | 22 explanationText_: String, |
| 26 }, | 23 }, |
| 27 | 24 |
| 25 /** @private {?settings.CertificatesBrowserProxy} */ |
| 26 browserProxy_: null, |
| 27 |
| 28 /** @override */ | 28 /** @override */ |
| 29 ready: function() { | 29 ready: function() { |
| 30 this.browserProxy_ = settings.CertificatesBrowserProxyImpl.getInstance(); | 30 this.browserProxy_ = settings.CertificatesBrowserProxyImpl.getInstance(); |
| 31 }, | 31 }, |
| 32 | 32 |
| 33 /** @override */ | 33 /** @override */ |
| 34 attached: function() { | 34 attached: function() { |
| 35 this.explanationText_ = loadTimeData.getStringF( | 35 this.explanationText_ = loadTimeData.getStringF( |
| 36 'certificateManagerCaTrustEditDialogExplanation', | 36 'certificateManagerCaTrustEditDialogExplanation', |
| 37 this.model.name); | 37 this.model.name); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 this.$.spinner.active = false; | 70 this.$.spinner.active = false; |
| 71 /** @type {!CrDialogElement} */ (this.$.dialog).close(); | 71 /** @type {!CrDialogElement} */ (this.$.dialog).close(); |
| 72 }.bind(this), | 72 }.bind(this), |
| 73 /** @param {!CertificatesError} error */ | 73 /** @param {!CertificatesError} error */ |
| 74 function(error) { | 74 function(error) { |
| 75 /** @type {!CrDialogElement} */ (this.$.dialog).close(); | 75 /** @type {!CrDialogElement} */ (this.$.dialog).close(); |
| 76 this.fire('certificates-error', {error: error, anchor: null}); | 76 this.fire('certificates-error', {error: error, anchor: null}); |
| 77 }.bind(this)); | 77 }.bind(this)); |
| 78 }, | 78 }, |
| 79 }); | 79 }); |
| OLD | NEW |