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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/get_actions.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/get_actions.cc
diff --git a/chrome/browser/chromeos/file_system_provider/operations/get_actions.cc b/chrome/browser/chromeos/file_system_provider/operations/get_actions.cc
index 0f33b271a4cc3a5b5ddb6f43710857addf80ec07..26ff87b78de419c06cdf5b5cdbaca211bfc155ee 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/get_actions.cc
+++ b/chrome/browser/chromeos/file_system_provider/operations/get_actions.cc
@@ -39,12 +39,11 @@ Actions ConvertRequestValueToActions(scoped_ptr<RequestValue> value) {
GetActions::GetActions(
extensions::EventRouter* event_router,
const ProvidedFileSystemInfo& file_system_info,
- const base::FilePath& entry_path,
+ const std::vector<base::FilePath>& entry_paths,
const ProvidedFileSystemInterface::GetActionsCallback& callback)
: Operation(event_router, file_system_info),
- entry_path_(entry_path),
- callback_(callback) {
-}
+ entry_paths_(entry_paths),
+ callback_(callback) {}
GetActions::~GetActions() {
}
@@ -55,7 +54,8 @@ bool GetActions::Execute(int request_id) {
GetActionsRequestedOptions 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());
return SendEvent(
request_id,

Powered by Google App Engine
This is Rietveld 408576698