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

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

Issue 1038433002: Update scanning to scan files in small batches (well batches of 1)...this fixes an issue where scan… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to review comments. Created 5 years, 9 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 | « ui/file_manager/file_manager/background/js/mock_media_scanner.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/import_controller.js
diff --git a/ui/file_manager/file_manager/foreground/js/import_controller.js b/ui/file_manager/file_manager/foreground/js/import_controller.js
index 01acf522ccf07b50ed745aa97e78f23433b263f1..058e2dd4e14c5a244ff58fd9b81aeb9a708e4e5e 100644
--- a/ui/file_manager/file_manager/foreground/js/import_controller.js
+++ b/ui/file_manager/file_manager/foreground/js/import_controller.js
@@ -879,7 +879,7 @@ importer.ScanManager.prototype.isActiveScan = function(scan) {
importer.ScanManager.prototype.getSelectionScan = function(entries) {
console.assert(!this.selectionScan_,
'Cannot create new selection scan with another in the cache.');
- this.selectionScan_ = this.scanner_.scan(entries);
+ this.selectionScan_ = this.scanner_.scanFiles(entries);
return this.selectionScan_;
};
@@ -897,7 +897,8 @@ importer.ScanManager.prototype.getCurrentDirectoryScan = function() {
var url = directory.toURL();
var scan = this.directoryScans_[url];
if (!scan) {
- scan = this.scanner_.scan([directory]);
+ scan = this.scanner_.scanDirectory(
+ /** @type {!DirectoryEntry} */ (directory));
this.directoryScans_[url] = scan;
}
« no previous file with comments | « ui/file_manager/file_manager/background/js/mock_media_scanner.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698