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

Unified Diff: chrome/browser/resources/file_manager/js/file_manager.js

Issue 14858017: CrOS Files.app: Support format command on new UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« 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