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

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

Issue 2594523002: Postpone the content duplication check until starting import. (Closed)
Patch Set: indent fix Created 4 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
« no previous file with comments | « no previous file | ui/file_manager/file_manager/background/js/duplicate_finder.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 251150d171b4cd8a89dd83a76e96d015da541505..fcdafc058df70713670d27c783524ffb51718245 100644
--- a/ui/file_manager/file_manager/background/js/background.js
+++ b/ui/file_manager/file_manager/background/js/background.js
@@ -74,14 +74,18 @@ function FileBrowserBackground() {
this.driveSyncHandler = new DriveSyncHandler(this.progressCenter);
/**
+ * @type {!importer.DispositionChecker.CheckerFunction}
+ */
+ this.dispositionChecker_ = importer.DispositionChecker.createChecker(
+ this.historyLoader, this.tracker);
+
+ /**
* Provides support for scaning media devices as part of Cloud Import.
* @type {!importer.MediaScanner}
*/
this.mediaScanner = new importer.DefaultMediaScanner(
importer.createMetadataHashcode,
- importer.DispositionChecker.createChecker(
- this.historyLoader,
- this.tracker),
+ this.dispositionChecker_,
importer.DefaultDirectoryWatcher.create);
/**
@@ -92,6 +96,7 @@ function FileBrowserBackground() {
this.mediaImportHandler = new importer.MediaImportHandler(
this.progressCenter,
this.historyLoader,
+ this.dispositionChecker_,
this.tracker);
/**
« no previous file with comments | « no previous file | ui/file_manager/file_manager/background/js/duplicate_finder.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698