Index: chrome/browser/resources/file_manager/js/file_manager.js |
diff --git a/chrome/browser/resources/file_manager/js/file_manager.js b/chrome/browser/resources/file_manager/js/file_manager.js |
index 9a617766811fa77b2116becc480e2cb196166446..7a95526baa657d6c579b48ace214b6a70a5ec264 100644 |
--- a/chrome/browser/resources/file_manager/js/file_manager.js |
+++ b/chrome/browser/resources/file_manager/js/file_manager.js |
@@ -624,17 +624,21 @@ DialogType.isModal = function(type) { |
CommandUtil.registerCommand(this.directoryTree_, 'import-photos', |
Commands.importCommand, this.directoryTree_); |
+ |
+ CommandUtil.registerCommand(doc, 'format', |
+ Commands.formatCommand, this.directoryTree_, this, |
+ this.directoryModel_); |
} else { |
CommandUtil.registerCommand(this.volumeList_, 'unmount', |
Commands.unmountCommand, this.volumeList_, this); |
CommandUtil.registerCommand(this.volumeList_, 'import-photos', |
Commands.importCommand, this.volumeList_); |
- } |
- CommandUtil.registerCommand(doc, 'format', |
- Commands.formatCommand, this.directoryTree_, this, |
- this.directoryModel_); |
+ CommandUtil.registerCommand(doc, 'format', |
+ Commands.formatCommand, this.volumeList_, this, |
+ this.directoryModel_); |
+ } |
CommandUtil.registerCommand(doc, 'delete', |
Commands.deleteFileCommand, this); |