| Index: chrome/browser/chromeos/drive/file_system/download_operation.cc
|
| diff --git a/chrome/browser/chromeos/drive/file_system/download_operation.cc b/chrome/browser/chromeos/drive/file_system/download_operation.cc
|
| index 67071026fb785ffc362169100e2b3efd01327ffd..5257e824bc3d73127a74d40b6217b6a97676766d 100644
|
| --- a/chrome/browser/chromeos/drive/file_system/download_operation.cc
|
| +++ b/chrome/browser/chromeos/drive/file_system/download_operation.cc
|
| @@ -61,13 +61,15 @@ FileError CheckPreConditionForEnsureFileDownloaded(
|
| // document.
|
| if (entry->file_specific_info().is_hosted_document()) {
|
| base::FilePath gdoc_file_path;
|
| + // TODO(rvargas): Convert this code to use base::File::Info.
|
| base::PlatformFileInfo file_info;
|
| if (!base::CreateTemporaryFileInDir(temporary_file_directory,
|
| &gdoc_file_path) ||
|
| !util::CreateGDocFile(gdoc_file_path,
|
| GURL(entry->file_specific_info().alternate_url()),
|
| entry->resource_id()) ||
|
| - !base::GetFileInfo(gdoc_file_path, &file_info))
|
| + !base::GetFileInfo(gdoc_file_path,
|
| + reinterpret_cast<base::File::Info*>(&file_info)))
|
| return FILE_ERROR_FAILED;
|
|
|
| *cache_file_path = gdoc_file_path;
|
| @@ -98,7 +100,8 @@ FileError CheckPreConditionForEnsureFileDownloaded(
|
| // the drive::FS side is also converted to run fully on blocking pool.
|
| if (cache_entry.is_dirty()) {
|
| base::PlatformFileInfo file_info;
|
| - if (base::GetFileInfo(*cache_file_path, &file_info))
|
| + if (base::GetFileInfo(*cache_file_path,
|
| + reinterpret_cast<base::File::Info*>(&file_info)))
|
| SetPlatformFileInfoToResourceEntry(file_info, entry);
|
| }
|
|
|
|
|