| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 cr.define('options', function() { | 5 cr.define('options', function() { |
| 6 const OptionsPage = options.OptionsPage; | 6 const OptionsPage = options.OptionsPage; |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * PackExtensionOverlay class | 9 * PackExtensionOverlay class |
| 10 * Encapsulated handling of the 'Pack Extension' overlay page. | 10 * Encapsulated handling of the 'Pack Extension' overlay page. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 $('extensionRootDir').value = filePath; | 70 $('extensionRootDir').value = filePath; |
| 71 }); | 71 }); |
| 72 }, | 72 }, |
| 73 | 73 |
| 74 /** | 74 /** |
| 75 * Handles the showing of the extension private key file. | 75 * Handles the showing of the extension private key file. |
| 76 * @param {Event} e Change event. | 76 * @param {Event} e Change event. |
| 77 * @private | 77 * @private |
| 78 */ | 78 */ |
| 79 handleBrowsePrivateKey_: function(e) { | 79 handleBrowsePrivateKey_: function(e) { |
| 80 this.showFileDialog_('file', 'load', function(filePath) { | 80 this.showFileDialog_('file', 'pem', function(filePath) { |
| 81 $('extensionPrivateKey').value = filePath; | 81 $('extensionPrivateKey').value = filePath; |
| 82 }); | 82 }); |
| 83 }, | 83 }, |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 // Export | 86 // Export |
| 87 return { | 87 return { |
| 88 PackExtensionOverlay: PackExtensionOverlay | 88 PackExtensionOverlay: PackExtensionOverlay |
| 89 }; | 89 }; |
| 90 }); | 90 }); |
| OLD | NEW |