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

Unified Diff: chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc

Issue 2408483002: [Extensions] Convert some ChromeSyncExtensionFunctions (Closed)
Patch Set: lazyboy's Created 4 years, 2 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/extensions/file_system_provider/file_system_provider_api.cc
diff --git a/chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc b/chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc
index 8daf68dff7f81260b5f0cbf92bfa4847ed259865..12459df0fe6d6131f80df6657e65f87e26ef1633 100644
--- a/chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc
+++ b/chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc
@@ -273,7 +273,8 @@ void FileSystemProviderNotifyFunction::OnNotifyCompleted(
SendResponse(true);
}
-bool FileSystemProviderInternalUnmountRequestedSuccessFunction::RunWhenValid() {
+ExtensionFunction::ResponseAction
+FileSystemProviderInternalUnmountRequestedSuccessFunction::Run() {
using api::file_system_provider_internal::UnmountRequestedSuccess::Params;
std::unique_ptr<Params> params(Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params);
@@ -283,8 +284,8 @@ bool FileSystemProviderInternalUnmountRequestedSuccessFunction::RunWhenValid() {
false /* has_more */);
}
-bool
-FileSystemProviderInternalGetMetadataRequestedSuccessFunction::RunWhenValid() {
+ExtensionFunction::ResponseAction
+FileSystemProviderInternalGetMetadataRequestedSuccessFunction::Run() {
using api::file_system_provider_internal::GetMetadataRequestedSuccess::Params;
std::unique_ptr<Params> params(Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params);
@@ -294,8 +295,8 @@ FileSystemProviderInternalGetMetadataRequestedSuccessFunction::RunWhenValid() {
false /* has_more */);
}
-bool FileSystemProviderInternalGetActionsRequestedSuccessFunction::
- RunWhenValid() {
+ExtensionFunction::ResponseAction
+FileSystemProviderInternalGetActionsRequestedSuccessFunction::Run() {
using api::file_system_provider_internal::GetActionsRequestedSuccess::Params;
std::unique_ptr<Params> params(Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params);
@@ -305,8 +306,8 @@ bool FileSystemProviderInternalGetActionsRequestedSuccessFunction::
false /* has_more */);
}
-bool FileSystemProviderInternalReadDirectoryRequestedSuccessFunction::
- RunWhenValid() {
+ExtensionFunction::ResponseAction
+FileSystemProviderInternalReadDirectoryRequestedSuccessFunction::Run() {
using api::file_system_provider_internal::ReadDirectoryRequestedSuccess::
Params;
std::unique_ptr<Params> params(Params::Create(*args_));
@@ -317,8 +318,8 @@ bool FileSystemProviderInternalReadDirectoryRequestedSuccessFunction::
RequestValue::CreateForReadDirectorySuccess(std::move(params)), has_more);
}
-bool
-FileSystemProviderInternalReadFileRequestedSuccessFunction::RunWhenValid() {
+ExtensionFunction::ResponseAction
+FileSystemProviderInternalReadFileRequestedSuccessFunction::Run() {
TRACE_EVENT0("file_system_provider", "ReadFileRequestedSuccess");
using api::file_system_provider_internal::ReadFileRequestedSuccess::Params;
@@ -330,8 +331,8 @@ FileSystemProviderInternalReadFileRequestedSuccessFunction::RunWhenValid() {
RequestValue::CreateForReadFileSuccess(std::move(params)), has_more);
}
-bool
-FileSystemProviderInternalOperationRequestedSuccessFunction::RunWhenValid() {
+ExtensionFunction::ResponseAction
+FileSystemProviderInternalOperationRequestedSuccessFunction::Run() {
using api::file_system_provider_internal::OperationRequestedSuccess::Params;
std::unique_ptr<Params> params(Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params);
@@ -342,7 +343,8 @@ FileSystemProviderInternalOperationRequestedSuccessFunction::RunWhenValid() {
false /* has_more */);
}
-bool FileSystemProviderInternalOperationRequestedErrorFunction::RunWhenValid() {
+ExtensionFunction::ResponseAction
+FileSystemProviderInternalOperationRequestedErrorFunction::Run() {
using api::file_system_provider_internal::OperationRequestedError::Params;
std::unique_ptr<Params> params(Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params);

Powered by Google App Engine
This is Rietveld 408576698