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

Unified Diff: components/nacl/renderer/manifest_service_channel.cc

Issue 348323002: Use base::File for the OpenResourceCallback's argument. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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: components/nacl/renderer/manifest_service_channel.cc
diff --git a/components/nacl/renderer/manifest_service_channel.cc b/components/nacl/renderer/manifest_service_channel.cc
index 407b92bd1d08a2f0d526e1a2ef8fb68c9c3b48ff..cb397038f82760ea310db0e093078bca4035ea41 100644
--- a/components/nacl/renderer/manifest_service_channel.cc
+++ b/components/nacl/renderer/manifest_service_channel.cc
@@ -85,13 +85,13 @@ void ManifestServiceChannel::OnOpenResource(
#if !defined(OS_WIN)
void ManifestServiceChannel::DidOpenResource(
- IPC::Message* reply, const base::PlatformFile& platform_file) {
+ IPC::Message* reply, base::File file) {
// Here, PlatformFileForTransit is alias of base::FileDescriptor.
PpapiHostMsg_OpenResource::WriteReplyParams(
reply,
ppapi::proxy::SerializedHandle(
ppapi::proxy::SerializedHandle::FILE,
- base::FileDescriptor(platform_file, true)));
+ base::FileDescriptor(file.Pass())));
Send(reply);
}
#endif
« no previous file with comments | « components/nacl/renderer/manifest_service_channel.h ('k') | components/nacl/renderer/ppb_nacl_private_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698