| Index: content/browser/renderer_host/file_utilities_message_filter.cc
|
| diff --git a/content/browser/renderer_host/file_utilities_message_filter.cc b/content/browser/renderer_host/file_utilities_message_filter.cc
|
| index 85edc34ac7b183c8c0637e5b514106643e6218bb..577653e9fb5d41dd464fd26cfbc63df1734a85dc 100644
|
| --- a/content/browser/renderer_host/file_utilities_message_filter.cc
|
| +++ b/content/browser/renderer_host/file_utilities_message_filter.cc
|
| @@ -36,10 +36,10 @@ bool FileUtilitiesMessageFilter::OnMessageReceived(const IPC::Message& message,
|
|
|
| void FileUtilitiesMessageFilter::OnGetFileInfo(
|
| const base::FilePath& path,
|
| - base::PlatformFileInfo* result,
|
| - base::PlatformFileError* status) {
|
| - *result = base::PlatformFileInfo();
|
| - *status = base::PLATFORM_FILE_OK;
|
| + base::File::Info* result,
|
| + base::File::Error* status) {
|
| + *result = base::File::Info();
|
| + *status = base::File::FILE_OK;
|
|
|
| // Get file metadata only when the child process has been granted
|
| // permission to read the file.
|
| @@ -48,9 +48,8 @@ void FileUtilitiesMessageFilter::OnGetFileInfo(
|
| return;
|
| }
|
|
|
| - // TODO(rvargas): convert this code to use base::File.
|
| - if (!base::GetFileInfo(path, reinterpret_cast<base::File::Info*>(result)))
|
| - *status = base::PLATFORM_FILE_ERROR_FAILED;
|
| + if (!base::GetFileInfo(path, result))
|
| + *status = base::File::FILE_ERROR_FAILED;
|
| }
|
|
|
| } // namespace content
|
|
|