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

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

Issue 792233009: Reflect scanning status in command UI. Only allow import once scanning is complete. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix FM.jstests.cc && Finalize scan results in MediaImportHandlerTest...unbreaking the test. 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/background/js/background.js
diff --git a/ui/file_manager/file_manager/background/js/background.js b/ui/file_manager/file_manager/background/js/background.js
index 43825d69e987776aa4a927eba478f3ba3cfed690..08723a36c0a6c98e7b77d0b0067fad8d76e45592 100644
--- a/ui/file_manager/file_manager/background/js/background.js
+++ b/ui/file_manager/file_manager/background/js/background.js
@@ -81,14 +81,19 @@ function FileBrowserBackground() {
function() { this.tryClose(); }.bind(this));
/**
+ * Provides support for scaning media devices as part of Cloud Import.
+ * @type {!importer.MediaScanner}
+ */
+ this.mediaScanner = new importer.DefaultMediaScanner(this.historyLoader);
+
+ /**
* Handles importing of user media (e.g. photos, videos) from removable
* devices.
* @type {!importer.MediaImportHandler}
*/
this.mediaImportHandler =
new importer.MediaImportHandler(
- this.fileOperationManager,
- new importer.DefaultMediaScanner(this.historyLoader));
+ this.fileOperationManager);
/**
* Promise of string data.

Powered by Google App Engine
This is Rietveld 408576698