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

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

Issue 980603003: Move content deduplication into the scan process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to review comments. Created 5 years, 10 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/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 44a8edb9c00659712ddb2c22b1d17e57c90eb3b1..b415ad092bf596cba56aac0b228707933e254177 100644
--- a/ui/file_manager/file_manager/background/js/background.js
+++ b/ui/file_manager/file_manager/background/js/background.js
@@ -79,7 +79,9 @@ function FileBrowserBackground() {
*/
this.mediaScanner = new importer.DefaultMediaScanner(
importer.createMetadataHashcode,
- this.historyLoader,
+ importer.DispositionChecker.createChecker(
+ this.historyLoader,
+ this.tracker),
importer.DefaultDirectoryWatcher.create);
/**
@@ -87,12 +89,10 @@ function FileBrowserBackground() {
* devices.
* @type {!importer.MediaImportHandler}
*/
- this.mediaImportHandler =
- new importer.MediaImportHandler(
- this.progressCenter,
- this.historyLoader,
- new importer.DriveDuplicateFinder.Factory(),
- this.tracker);
+ this.mediaImportHandler = new importer.MediaImportHandler(
+ this.progressCenter,
+ this.historyLoader,
+ this.tracker);
/**
* Promise of string data.
« 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