| OLD | NEW |
| 1 // Copyright 2015 The Chromium OS Authors. All rights reserved. | 1 // Copyright 2015 The Chromium OS 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 * @constructor | 6 * @constructor |
| 7 * @param {?string} initPassphrase Initial passphrase for the first passphrase | 7 * @param {?string} initPassphrase Initial passphrase for the first passphrase |
| 8 * request or NULL if not available. In such case, call to getPassphrase() | 8 * request or NULL if not available. In such case, call to getPassphrase() |
| 9 * will invoke a dialog. | 9 * will invoke a dialog. |
| 10 */ | 10 */ |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 passphraseWindow.contentWindow.onPassphraseSuccess = | 57 passphraseWindow.contentWindow.onPassphraseSuccess = |
| 58 function(passphrase, remember) { | 58 function(passphrase, remember) { |
| 59 passphraseSucceeded = true; | 59 passphraseSucceeded = true; |
| 60 this.rememberedPassphrase = remember ? passphrase : null; | 60 this.rememberedPassphrase = remember ? passphrase : null; |
| 61 fulfill(passphrase); | 61 fulfill(passphrase); |
| 62 }.bind(this); | 62 }.bind(this); |
| 63 }.bind(this)); | 63 }.bind(this)); |
| 64 }.bind(this)); | 64 }.bind(this)); |
| 65 } | 65 } |
| OLD | NEW |