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

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

Issue 880303002: Eliminate last vestigages of the command system design. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to review comments. 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
« no previous file with comments | « no previous file | ui/file_manager/file_manager/foreground/js/import_controller.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/file_manager.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_manager.js b/ui/file_manager/file_manager/foreground/js/file_manager.js
index a7aed7df8448bc12002b3b089f4ede02a9e3d115..726be4e9724126afe77eee819a7f15a57c0aa508 100644
--- a/ui/file_manager/file_manager/foreground/js/file_manager.js
+++ b/ui/file_manager/file_manager/foreground/js/file_manager.js
@@ -485,14 +485,13 @@ FileManager.prototype = /** @struct */ {
importer.importEnabled().then(
function(enabled) {
if (enabled) {
- var commandAdapter = new importer.ButtonCommandAdapter(this);
this.importController_ = new importer.ImportController(
new importer.RuntimeControllerEnvironment(this),
/** @type {!importer.MediaScanner} */ (
this.mediaScanner_),
/** @type {!importer.ImportRunner} */ (
this.mediaImportHandler_),
- commandAdapter.update.bind(commandAdapter));
+ new importer.RuntimeCommandWidget());
}
}.bind(this));
« no previous file with comments | « no previous file | ui/file_manager/file_manager/foreground/js/import_controller.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698