Convert base::file_util to use File instead of PlatformFile.
BUG=322664
R=brettw@chromium.org
TBR=darin@chromium.org
Review URL: https://codereview.chromium.org/101143006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243235 0039d316-1c4b-4281-b951-d872f2087c98
CrOS-Libchrome-Original-Commit: 54124ed0423cd16e594535fdd9e779f82235fa1a
diff --git a/base/files/file_util_proxy.cc b/base/files/file_util_proxy.cc
index 40cac11..8307234 100644
--- a/base/files/file_util_proxy.cc
+++ b/base/files/file_util_proxy.cc
@@ -7,6 +7,7 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/file_util.h"
+#include "base/files/file.h"
#include "base/location.h"
#include "base/message_loop/message_loop_proxy.h"
#include "base/task_runner.h"
@@ -111,7 +112,8 @@
error_ = PLATFORM_FILE_ERROR_NOT_FOUND;
return;
}
- if (!GetFileInfo(file_path, &file_info_))
+ // TODO(rvargas): switch this file to base::File.
+ if (!GetFileInfo(file_path, reinterpret_cast<File::Info*>(&file_info_)))
error_ = PLATFORM_FILE_ERROR_FAILED;
}