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

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

Issue 557223003: Files.app: Remove getDriveFiles function from the private API. (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
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/file_manager.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/file_tasks.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_tasks.js b/ui/file_manager/file_manager/foreground/js/file_tasks.js
index 647d62e94d59990c64d1ec0f65064ab1cb22193a..6f65fb59bf8811db934e149cd6275f795762d455 100644
--- a/ui/file_manager/file_manager/foreground/js/file_tasks.js
+++ b/ui/file_manager/file_manager/foreground/js/file_tasks.js
@@ -588,10 +588,10 @@ FileTasks.prototype.mountArchivesInternal_ = function(entries) {
// TODO(mtomasz): Move conversion from entry to url to custom bindings.
// crbug.com/345527.
var urls = util.entriesToURLs(entries);
- fm.resolveSelectResults_(urls, function(resolvedURLs) {
- for (var index = 0; index < resolvedURLs.length; ++index) {
- // TODO(mtomasz): Pass Entry instead of URL.
- fm.volumeManager.mountArchive(resolvedURLs[index],
+ for (var index = 0; index < urls.length; ++index) {
+ // TODO(mtomasz): Pass Entry instead of URL.
+ fm.volumeManager.mountArchive(
+ urls[index],
function(volumeInfo) {
if (tracker.hasChanged) {
tracker.stop();
@@ -613,9 +613,8 @@ FileTasks.prototype.mountArchivesInternal_ = function(entries) {
var namePos = path.lastIndexOf('/');
fm.alert.show(strf('ARCHIVE_MOUNT_FAILED',
path.substr(namePos + 1), error));
- }.bind(null, resolvedURLs[index]));
- }
- });
+ }.bind(null, urls[index]));
+ }
};
/**
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/file_manager.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698