| Index: chrome/browser/resources/settings/certificate_manager_page/certificate_list.js
|
| diff --git a/chrome/browser/resources/settings/certificate_manager_page/certificate_list.js b/chrome/browser/resources/settings/certificate_manager_page/certificate_list.js
|
| index f9b7b020fbeb973a500ed6078b89ac3902d14e90..d4961327993ad9faafa10dd38c4990797460eb46 100644
|
| --- a/chrome/browser/resources/settings/certificate_manager_page/certificate_list.js
|
| +++ b/chrome/browser/resources/settings/certificate_manager_page/certificate_list.js
|
| @@ -13,7 +13,9 @@ Polymer({
|
| /** @type {!Array<!Certificate>} */
|
| certificates: {
|
| type: Array,
|
| - value: function() { return []; },
|
| + value: function() {
|
| + return [];
|
| + },
|
| },
|
|
|
| /** @type {!CertificateType} */
|
| @@ -88,21 +90,17 @@ Polymer({
|
| onImportTap_: function() {
|
| var browserProxy = settings.CertificatesBrowserProxyImpl.getInstance();
|
| if (this.certificateType == CertificateType.PERSONAL) {
|
| - browserProxy.importPersonalCertificate(false).then(
|
| - function(showPasswordPrompt) {
|
| + browserProxy.importPersonalCertificate(false)
|
| + .then(function(showPasswordPrompt) {
|
| if (showPasswordPrompt)
|
| this.dispatchImportActionEvent_(null);
|
| - }.bind(this),
|
| - this.onRejected_.bind(this));
|
| + }.bind(this), this.onRejected_.bind(this));
|
| } else if (this.certificateType == CertificateType.CA) {
|
| - browserProxy.importCaCertificate().then(
|
| - function(certificateName) {
|
| - this.dispatchImportActionEvent_({name: certificateName});
|
| - }.bind(this),
|
| - this.onRejected_.bind(this));
|
| + browserProxy.importCaCertificate().then(function(certificateName) {
|
| + this.dispatchImportActionEvent_({name: certificateName});
|
| + }.bind(this), this.onRejected_.bind(this));
|
| } else if (this.certificateType == CertificateType.SERVER) {
|
| - browserProxy.importServerCertificate().catch(
|
| - this.onRejected_.bind(this));
|
| + browserProxy.importServerCertificate().catch(this.onRejected_.bind(this));
|
| } else {
|
| assertNotReached();
|
| }
|
|
|