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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/execute_action.cc

Issue 1239043002: Add support for actions for multiple file selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed externs. Created 5 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: chrome/browser/chromeos/file_system_provider/operations/execute_action.cc
diff --git a/chrome/browser/chromeos/file_system_provider/operations/execute_action.cc b/chrome/browser/chromeos/file_system_provider/operations/execute_action.cc
index 8e2bb162653db682dce5b2587489cfdf8bada0a0..502dd78d7b7e1e84ac723ba6ed4f22076475983c 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/execute_action.cc
+++ b/chrome/browser/chromeos/file_system_provider/operations/execute_action.cc
@@ -17,14 +17,13 @@ namespace operations {
ExecuteAction::ExecuteAction(
extensions::EventRouter* event_router,
const ProvidedFileSystemInfo& file_system_info,
- const base::FilePath& entry_path,
+ const std::vector<base::FilePath>& entry_paths,
const std::string& action_id,
const storage::AsyncFileUtil::StatusCallback& callback)
: Operation(event_router, file_system_info),
- entry_path_(entry_path),
+ entry_paths_(entry_paths),
action_id_(action_id),
- callback_(callback) {
-}
+ callback_(callback) {}
ExecuteAction::~ExecuteAction() {
}
@@ -35,7 +34,8 @@ bool ExecuteAction::Execute(int request_id) {
ExecuteActionRequestedOptions options;
options.file_system_id = file_system_info_.file_system_id();
options.request_id = request_id;
- options.entry_path = entry_path_.AsUTF8Unsafe();
+ for (const auto& entry_path : entry_paths_)
+ options.entry_paths.push_back(entry_path.AsUTF8Unsafe());
options.action_id = action_id_;
return SendEvent(

Powered by Google App Engine
This is Rietveld 408576698