Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: chrome/browser/resources/options/pack_extension_overlay.js

Issue 8748021: Fix file-select dialog handling for private key (pem) files. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698