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

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: Fixed Created 6 years, 6 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: 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 2cb78d34774b03c6b32217fb961219a904e78f69..c74cd2c399cf5d7773e99266c5a2ad5c1d22cabe 100644
--- a/chrome/browser/chromeos/file_manager/file_tasks.cc
+++ b/chrome/browser/chromeos/file_manager/file_tasks.cc
@@ -311,11 +311,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;

Powered by Google App Engine
This is Rietveld 408576698