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

Unified Diff: chrome/browser/chromeos/file_system_provider/provided_file_system.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/provided_file_system.cc
diff --git a/chrome/browser/chromeos/file_system_provider/provided_file_system.cc b/chrome/browser/chromeos/file_system_provider/provided_file_system.cc
index 6c3ff26521e5ff14f3cdf3f25cda2a2dc861d003..4657f19a739a9c1d7217ceb93eeae1de881a9d12 100644
--- a/chrome/browser/chromeos/file_system_provider/provided_file_system.cc
+++ b/chrome/browser/chromeos/file_system_provider/provided_file_system.cc
@@ -198,12 +198,12 @@ AbortCallback ProvidedFileSystem::GetMetadata(
}
AbortCallback ProvidedFileSystem::GetActions(
- const base::FilePath& entry_path,
+ const std::vector<base::FilePath>& entry_paths,
const GetActionsCallback& callback) {
const int request_id = request_manager_->CreateRequest(
GET_ACTIONS,
scoped_ptr<RequestManager::HandlerInterface>(new operations::GetActions(
- event_router_, file_system_info_, entry_path, callback)));
+ event_router_, file_system_info_, entry_paths, callback)));
if (!request_id) {
callback.Run(Actions(), base::File::FILE_ERROR_SECURITY);
return AbortCallback();
@@ -214,14 +214,14 @@ AbortCallback ProvidedFileSystem::GetActions(
}
AbortCallback ProvidedFileSystem::ExecuteAction(
- const base::FilePath& entry_path,
+ const std::vector<base::FilePath>& entry_paths,
const std::string& action_id,
const storage::AsyncFileUtil::StatusCallback& callback) {
const int request_id = request_manager_->CreateRequest(
EXECUTE_ACTION,
scoped_ptr<RequestManager::HandlerInterface>(
new operations::ExecuteAction(event_router_, file_system_info_,
- entry_path, action_id, callback)));
+ entry_paths, action_id, callback)));
if (!request_id) {
callback.Run(base::File::FILE_ERROR_SECURITY);
return AbortCallback();

Powered by Google App Engine
This is Rietveld 408576698