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

Unified Diff: chrome/browser/chromeos/drive/file_system/download_operation.cc

Issue 101143006: Convert base::file_util to use File instead of PlatformFile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove base:: Created 6 years, 11 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/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);
}
« no previous file with comments | « chrome/browser/chromeos/drive/file_system.cc ('k') | chrome/browser/chromeos/extensions/echo_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698