Index: ui/file_manager/file_manager/foreground/js/file_selection.js |
diff --git a/ui/file_manager/file_manager/foreground/js/file_selection.js b/ui/file_manager/file_manager/foreground/js/file_selection.js |
index 3f44f8f355467731e35443d8cd43480a8aab3c30..42eca37c48dff677aa7a8beaf9a0298d5ebda9d0 100644 |
--- a/ui/file_manager/file_manager/foreground/js/file_selection.js |
+++ b/ui/file_manager/file_manager/foreground/js/file_selection.js |
@@ -68,18 +68,21 @@ FileSelection.prototype.createTasks = function(callback) { |
return; |
} |
- this.fileManager_.metadataCache_.get(this.entries, 'drive', function(props) { |
- var present = props.filter(function(p) { return p && p.availableOffline }); |
- this.allDriveFilesPresent = present.length == props.length; |
- |
- // Collect all of the mime types and push that info into the selection. |
- this.mimeTypes = props.map(function(value) { |
- return (value && value.contentMimeType) || ''; |
- }); |
- |
- this.tasks.init(this.entries, this.mimeTypes); |
- callback(); |
- }.bind(this)); |
+ this.fileManager_.metadataCache_.get( |
+ this.entries, 'external', function(props) { |
+ var present = props.filter(function(p) { |
+ return p && p.availableOffline |
+ }); |
+ this.allDriveFilesPresent = present.length == props.length; |
+ |
+ // Collect all of the mime types and push that info into the selection. |
+ this.mimeTypes = props.map(function(value) { |
+ return (value && value.contentMimeType) || ''; |
+ }); |
+ |
+ this.tasks.init(this.entries, this.mimeTypes); |
+ callback(); |
+ }.bind(this)); |
}; |
/** |