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 29b08b26c0724829f2facb3b4ccf3618dd6a746d..471f7c3d0c0b8d03bc6d5358080adfc9d938bb25 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 |
@@ -183,18 +183,10 @@ bool FileSystemProviderInternalUnmountRequestedErrorFunction::RunImpl() { |
chromeos::file_system_provider::Service::Get(GetProfile()); |
DCHECK(service); |
- // Currently it is not possible to refer to types/enums defined in a different |
- // IDL file. Therefore we need to convert DOMString to ProviderError, since |
- // UnmountRequestedErrorFunction() is defined in a different namespace than |
- // ProvidedError. |
- // TODO(mtomasz): Remove this trick, once IDL supports namespaces correctly. |
- const api::file_system_provider::ProviderError provider_error = |
- api::file_system_provider::ParseProviderError(params->error); |
- |
if (!service->RejectRequest(extension_id(), |
params->file_system_id, |
params->request_id, |
- ProviderErrorToFileError(provider_error))) { |
+ ProviderErrorToFileError(params->error))) { |
// TODO(mtomasz): Pass more detailed errors, rather than just a bool. |
base::ListValue* result = new base::ListValue(); |
result->Append( |