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

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

Issue 865343002: Files.app: Invalidate ScanResult when the scanned directory is changed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/background/js/media_scanner.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 1c5a027bc7641df82fefde18dce1b65e3cb84ee1..dba324009cb91a9b6f84dfdf9e7b50d6ff031feb 100644
--- a/ui/file_manager/file_manager/background/js/background.js
+++ b/ui/file_manager/file_manager/background/js/background.js
@@ -79,7 +79,8 @@ function FileBrowserBackground() {
*/
this.mediaScanner = new importer.DefaultMediaScanner(
importer.createMetadataHashcode,
- this.historyLoader);
+ this.historyLoader,
+ importer.DefaultDirectoryWatcher.create);
/**
* Handles importing of user media (e.g. photos, videos) from removable
« no previous file with comments | « no previous file | ui/file_manager/file_manager/background/js/media_scanner.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698