| 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 52ebdd87612d808a8cc5e2c9bea0f43cd8cd455a..e75968642b9cd4b89e93018459f730e0f81da558 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
|
| @@ -9,12 +9,14 @@
|
| #include "base/values.h"
|
| #include "chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h"
|
| #include "chrome/browser/chromeos/file_system_provider/request_manager.h"
|
| +#include "chrome/browser/chromeos/file_system_provider/request_value.h"
|
| #include "chrome/browser/chromeos/file_system_provider/service.h"
|
| #include "chrome/common/extensions/api/file_system_provider.h"
|
| #include "chrome/common/extensions/api/file_system_provider_internal.h"
|
|
|
| using chromeos::file_system_provider::ProvidedFileSystemInterface;
|
| using chromeos::file_system_provider::RequestManager;
|
| +using chromeos::file_system_provider::RequestValue;
|
| using chromeos::file_system_provider::Service;
|
|
|
| namespace extensions {
|
| @@ -151,7 +153,7 @@ bool FileSystemProviderUnmountFunction::RunImpl() {
|
|
|
| bool FileSystemProviderInternalUnmountRequestedSuccessFunction::RunImpl() {
|
| using api::file_system_provider_internal::UnmountRequestedSuccess::Params;
|
| - const scoped_ptr<Params> params(Params::Create(*args_));
|
| + scoped_ptr<Params> params(Params::Create(*args_));
|
| EXTENSION_FUNCTION_VALIDATE(params);
|
|
|
| Service* service = Service::Get(GetProfile());
|
| @@ -170,9 +172,11 @@ bool FileSystemProviderInternalUnmountRequestedSuccessFunction::RunImpl() {
|
| RequestManager* request_manager = file_system->GetRequestManager();
|
| DCHECK(request_manager);
|
|
|
| - if (!request_manager->FulfillRequest(params->request_id,
|
| - scoped_ptr<base::DictionaryValue>(),
|
| - false /* has_more */)) {
|
| + const int request_id = params->request_id;
|
| + if (!request_manager->FulfillRequest(
|
| + request_id,
|
| + RequestValue::CreateForUnmountSuccess(params.Pass()),
|
| + false /* has_more */)) {
|
| // TODO(mtomasz): Pass more detailed errors, rather than just a bool.
|
| base::ListValue* result = new base::ListValue();
|
| result->Append(
|
|
|