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

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

Issue 14771021: Merge 199208 "CrOS Files.app: Support format command on new UI." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1500/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
===================================================================
--- chrome/browser/resources/file_manager/js/file_manager.js (revision 199636)
+++ chrome/browser/resources/file_manager/js/file_manager.js (working copy)
@@ -624,18 +624,22 @@
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.volumeList_, this,
+ this.directoryModel_);
}
- CommandUtil.registerCommand(doc, 'format',
- Commands.formatCommand, this.directoryTree_, 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