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

Unified Diff: chrome/browser/chromeos/drive/file_system.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.cc
diff --git a/chrome/browser/chromeos/drive/file_system.cc b/chrome/browser/chromeos/drive/file_system.cc
index d8c0b7157ee43549eb1d4b3cb5774fad839234fd..2d5bc97e77ccef1bf713f2f00c49b7eb836ea3a6 100644
--- a/chrome/browser/chromeos/drive/file_system.cc
+++ b/chrome/browser/chromeos/drive/file_system.cc
@@ -74,9 +74,12 @@ FileError GetLocallyStoredResourceEntry(
if (error != FILE_ERROR_OK)
return error;
+ // TODO(rvargas): Convert this code to use base::File::Info.
base::PlatformFileInfo file_info;
- if (!base::GetFileInfo(local_cache_path, &file_info))
+ if (!base::GetFileInfo(local_cache_path,
+ reinterpret_cast<base::File::Info*>(&file_info))) {
return FILE_ERROR_NOT_FOUND;
+ }
SetPlatformFileInfoToResourceEntry(file_info, entry);
return FILE_ERROR_OK;

Powered by Google App Engine
This is Rietveld 408576698