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

Unified Diff: content/browser/renderer_host/file_utilities_message_filter.cc

Issue 145303002: Convert Media Galleries to use base::File (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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: 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

Powered by Google App Engine
This is Rietveld 408576698