| 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 A dialog for showing SSL certificate related error messages. | 6 * @fileoverview A dialog for showing SSL certificate related error messages. |
| 7 * The user can only close the dialog, there is no other possible interaction. | 7 * The user can only close the dialog, there is no other possible interaction. |
| 8 */ | 8 */ |
| 9 Polymer({ | 9 Polymer({ |
| 10 is: 'settings-certificates-error-dialog', | 10 is: 'settings-certificates-error-dialog', |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 this.$.dialog.close(); | 24 this.$.dialog.close(); |
| 25 }, | 25 }, |
| 26 | 26 |
| 27 /** | 27 /** |
| 28 * @param {{certificateName: string, error: string}} importError | 28 * @param {{certificateName: string, error: string}} importError |
| 29 * @return {string} | 29 * @return {string} |
| 30 * @private | 30 * @private |
| 31 */ | 31 */ |
| 32 getCertificateErrorText_: function(importError) { | 32 getCertificateErrorText_: function(importError) { |
| 33 return loadTimeData.getStringF( | 33 return loadTimeData.getStringF( |
| 34 'certificateImportErrorFormat', | 34 'certificateImportErrorFormat', importError.name, importError.error); |
| 35 importError.certificateName, importError.error); | |
| 36 }, | 35 }, |
| 37 }); | 36 }); |
| OLD | NEW |