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

Unified Diff: chrome/browser/chromeos/file_manager/file_tasks.cc

Issue 300063006: Files.app: Let Files.app pass mutliple files to file handlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
« apps/launcher.cc ('K') | « apps/launcher.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/file_manager/file_tasks.cc
diff --git a/chrome/browser/chromeos/file_manager/file_tasks.cc b/chrome/browser/chromeos/file_manager/file_tasks.cc
index 47f83bd16511367480f7a80f3998cfd06f2bce47..f9d4c5456e8f1edbdf272cee9844dd9dca6532f3 100644
--- a/chrome/browser/chromeos/file_manager/file_tasks.cc
+++ b/chrome/browser/chromeos/file_manager/file_tasks.cc
@@ -309,11 +309,12 @@ bool ExecuteFileTask(Profile* profile,
file_urls,
done);
} else if (task.task_type == TASK_TYPE_FILE_HANDLER) {
+ std::vector<base::FilePath> paths;
for (size_t i = 0; i != file_urls.size(); ++i) {
- apps::LaunchPlatformAppWithFileHandler(
- profile, extension, task.action_id, file_urls[i].path());
+ paths.push_back(file_urls[i].path());
}
-
+ apps::LaunchPlatformAppWithFileHandler(
+ profile, extension, task.action_id, paths);
if (!done.is_null())
done.Run(extensions::api::file_browser_private::TASK_RESULT_MESSAGE_SENT);
return true;
« apps/launcher.cc ('K') | « apps/launcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698