| Index: chrome/browser/resources/settings/certificate_manager_page/certificate_password_decryption_dialog.js
|
| diff --git a/chrome/browser/resources/settings/certificate_manager_page/certificate_password_encryption_dialog.js b/chrome/browser/resources/settings/certificate_manager_page/certificate_password_decryption_dialog.js
|
| similarity index 62%
|
| copy from chrome/browser/resources/settings/certificate_manager_page/certificate_password_encryption_dialog.js
|
| copy to chrome/browser/resources/settings/certificate_manager_page/certificate_password_decryption_dialog.js
|
| index e9ad4084180ba1db66eca35e8cd72911882d1dbd..9a74530d284ef95d6c82f0d5e86923b9bd9b1a1a 100644
|
| --- a/chrome/browser/resources/settings/certificate_manager_page/certificate_password_encryption_dialog.js
|
| +++ b/chrome/browser/resources/settings/certificate_manager_page/certificate_password_decryption_dialog.js
|
| @@ -3,30 +3,21 @@
|
| // found in the LICENSE file.
|
|
|
| /**
|
| - * @fileoverview A dialog prompting the user to encrypt a personal certificate
|
| - * before it is exported to disk.
|
| + * @fileoverview A dialog prompting the user for a decryption password such that
|
| + * a previously exported personal certificate can be imported.
|
| */
|
| Polymer({
|
| - is: 'settings-certificate-password-encryption-dialog',
|
| + is: 'settings-certificate-password-decryption-dialog',
|
|
|
| properties: {
|
| /** @private {!settings.CertificatesBrowserProxy} */
|
| browserProxy_: Object,
|
|
|
| - /** @type {!CertificateSubnode} */
|
| - model: Object,
|
| -
|
| /** @private */
|
| password_: {
|
| type: String,
|
| value: '',
|
| },
|
| -
|
| - /** @private */
|
| - confirmPassword_: {
|
| - type: String,
|
| - value: '',
|
| - },
|
| },
|
|
|
| /** @override */
|
| @@ -46,7 +37,7 @@ Polymer({
|
|
|
| /** @private */
|
| onOkTap_: function() {
|
| - this.browserProxy_.exportPersonalCertificatePasswordSelected(
|
| + this.browserProxy_.importPersonalCertificatePasswordSelected(
|
| this.password_).then(function() {
|
| this.$.dialog.close();
|
| }.bind(this),
|
| @@ -55,11 +46,4 @@ Polymer({
|
| // TODO(dpapad): Display error here.
|
| });
|
| },
|
| -
|
| - /** @private */
|
| - validate_: function() {
|
| - var isValid = this.password_ != '' &&
|
| - this.password_ == this.confirmPassword_;
|
| - this.$.ok.disabled = !isValid;
|
| - },
|
| });
|
|
|