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

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

Issue 529413002: Rename DriveProvider to ExternalProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed. Created 6 years, 3 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
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));
};
/**

Powered by Google App Engine
This is Rietveld 408576698