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; |
} |