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

Unified Diff: ui/file_manager/file_manager/foreground/js/file_manager_commands.js

Issue 883973002: Move cloud import button to toolbar, make material designey. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test coverage for new command update logic. Fix a type, and undo some early debug code. Created 5 years, 11 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
Index: ui/file_manager/file_manager/foreground/js/file_manager_commands.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_manager_commands.js b/ui/file_manager/file_manager/foreground/js/file_manager_commands.js
index f995f58db0900d7d71fe5f2a82cfe7d507a1ed94..ac29e6db37fe84b53dec4caa2a7760bbac996c9b 100644
--- a/ui/file_manager/file_manager/foreground/js/file_manager_commands.js
+++ b/ui/file_manager/file_manager/foreground/js/file_manager_commands.js
@@ -1018,36 +1018,6 @@ CommandHandler.COMMANDS_['share'] = /** @type {Command} */ ({
});
/**
- * Initiates cloud import.
- * @type {Command}
- */
-CommandHandler.COMMANDS_['cloud-import'] = /** @type {Command} */ ({
- /**
- * @param {!Event} event Command event.
- * @param {!FileManager} fileManager
- */
- execute: function(event, fileManager) {
- console.assert(fileManager.importController !== null);
- fileManager.importController.execute();
- },
- /**
- * @param {!Event} event Command event.
- * @param {!FileManager} fileManager
- */
- canExecute: function(event, fileManager) {
- if (fileManager.importController) {
- var response = fileManager.importController.getCommandUpdate();
- event.command.label = response.label;
- event.canExecute = response.executable;
- event.command.setHidden(!response.visible);
- } else {
- event.canExecute = false;
- event.command.setHidden(true);
- }
- }
-});
-
-/**
* Creates a shortcut of the selected folder (single only).
* @type {Command}
*/

Powered by Google App Engine
This is Rietveld 408576698