Index: chrome/browser/resources/options/extension_settings.js |
diff --git a/chrome/browser/resources/options/extension_settings.js b/chrome/browser/resources/options/extension_settings.js |
index 47a0d0081e5d01656e9d6015f7d459a189202597..80c2db0e1f7272a8cd4bf255f4cb37b70268b039 100644 |
--- a/chrome/browser/resources/options/extension_settings.js |
+++ b/chrome/browser/resources/options/extension_settings.js |
@@ -57,32 +57,12 @@ cr.define('options', function() { |
}, |
/** |
- * Utility function which asks the C++ to show a platform-specific file |
- * select dialog, and fire |callback| with the |filePath| that resulted. |
- * |selectType| can be either 'file' or 'folder'. |operation| can be 'load', |
- * 'packRoot', or 'pem' which are signals to the C++ to do some |
- * operation-specific configuration. |
- * @private |
- */ |
- showFileDialog_: function(selectType, operation, callback) { |
- handleFilePathSelected = function(filePath) { |
- callback(filePath); |
- handleFilePathSelected = function() {}; |
- }; |
- |
- chrome.send('extensionSettingsSelectFilePath', [selectType, operation]); |
- }, |
- |
- /** |
* Handles the Load Unpacked Extension button. |
* @param {Event} e Change event. |
* @private |
*/ |
handleLoadUnpackedExtension_: function(e) { |
- this.showFileDialog_('folder', 'load', function(filePath) { |
- chrome.send('extensionSettingsLoad', [String(filePath)]); |
- }); |
- |
+ chrome.send('extensionSettingsLoadUnpackedExtension'); |
chrome.send('coreOptionsUserMetricsAction', |
['Options_LoadUnpackedExtension']); |
}, |