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

Unified Diff: components/nacl/browser/nacl_file_host.cc

Issue 1862333002: ipc: Rename TakeFileHandleForProcess->TakePlatformFileForTransit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile errors. Created 4 years, 8 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
« no previous file with comments | « chrome/service/service_utility_process_host.cc ('k') | components/nacl/browser/nacl_host_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/browser/nacl_file_host.cc
diff --git a/components/nacl/browser/nacl_file_host.cc b/components/nacl/browser/nacl_file_host.cc
index 36c9eba66fbfb0017593906cd1f9361db19805bb..4c1cdb68f6986767c2bcfaf958d982cbcfaac621 100644
--- a/components/nacl/browser/nacl_file_host.cc
+++ b/components/nacl/browser/nacl_file_host.cc
@@ -61,8 +61,8 @@ void DoRegisterOpenedNaClExecutableFile(
uint64_t file_token_hi = 0;
nacl_browser->PutFilePath(file_path, &file_token_lo, &file_token_hi);
- IPC::PlatformFileForTransit file_desc = IPC::TakeFileHandleForProcess(
- std::move(file), nacl_host_message_filter->PeerHandle());
+ IPC::PlatformFileForTransit file_desc =
+ IPC::TakePlatformFileForTransit(std::move(file));
write_reply_message(reply_msg, file_desc, file_token_lo, file_token_hi);
nacl_host_message_filter->Send(reply_msg);
@@ -110,8 +110,8 @@ void DoOpenPnaclFile(
static_cast<WriteFileInfoReply>(
NaClHostMsg_GetReadonlyPnaclFD::WriteReplyParams)));
} else {
- IPC::PlatformFileForTransit target_desc = IPC::TakeFileHandleForProcess(
- std::move(file_to_open), nacl_host_message_filter->PeerHandle());
+ IPC::PlatformFileForTransit target_desc =
+ IPC::TakePlatformFileForTransit(std::move(file_to_open));
uint64_t dummy_file_token = 0;
NaClHostMsg_GetReadonlyPnaclFD::WriteReplyParams(
reply_msg, target_desc, dummy_file_token, dummy_file_token);
@@ -158,8 +158,8 @@ void DoOpenNaClExecutableOnThreadPool(
static_cast<WriteFileInfoReply>(
NaClHostMsg_OpenNaClExecutable::WriteReplyParams)));
} else {
- IPC::PlatformFileForTransit file_desc = IPC::TakeFileHandleForProcess(
- std::move(file), nacl_host_message_filter->PeerHandle());
+ IPC::PlatformFileForTransit file_desc =
+ IPC::TakePlatformFileForTransit(std::move(file));
uint64_t dummy_file_token = 0;
NaClHostMsg_OpenNaClExecutable::WriteReplyParams(
reply_msg, file_desc, dummy_file_token, dummy_file_token);
« no previous file with comments | « chrome/service/service_utility_process_host.cc ('k') | components/nacl/browser/nacl_host_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698