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

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

Issue 805533003: Hook up import history to media scanner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert manifest.json. Created 6 years 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.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 1ed03db6a9f170da26da1e7aac901a118f3daf40..1680e15a5a4ffeea8ea7bbd29a29c7a6d7cd0d40 100644
--- a/ui/file_manager/file_manager/foreground/js/file_manager.js
+++ b/ui/file_manager/file_manager/foreground/js/file_manager.js
@@ -665,15 +665,8 @@ Object.freeze(DialogType);
this.backgroundPage_.background.fileOperationManager;
this.mediaImportHandler_ =
this.backgroundPage_.background.mediaImportHandler;
- this.backgroundPage_.background.historyLoaderPromise.then(
- /**
- * @param {!importer.HistoryLoader} loader
- * @this {FileManager}
- */
- function(loader) {
- this.historyLoader_ = loader;
- callback();
- }.bind(this));
+ this.historyLoader_ = this.backgroundPage_.background.historyLoader;
+ callback();
}.bind(this));
}.bind(this)));
};

Powered by Google App Engine
This is Rietveld 408576698