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

Unified Diff: components/nacl/browser/nacl_process_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
Index: components/nacl/browser/nacl_process_host.cc
diff --git a/components/nacl/browser/nacl_process_host.cc b/components/nacl/browser/nacl_process_host.cc
index 7d604dc6216a672e7cde1263c44d95371a4446df..fbf168bfb4fad59bca2e61ae484e31bf4c88a75a 100644
--- a/components/nacl/browser/nacl_process_host.cc
+++ b/components/nacl/browser/nacl_process_host.cc
@@ -994,11 +994,10 @@ void NaClProcessHost::StartNaClFileResolved(
content::BrowserThread::GetBlockingPool()->PostTask(
FROM_HERE, base::Bind(&CloseFile, base::Passed(std::move(nexe_file_))));
params.nexe_file_path_metadata = file_path;
- params.nexe_file = IPC::TakeFileHandleForProcess(
- std::move(checked_nexe_file), process_->GetData().handle);
+ params.nexe_file =
+ IPC::TakePlatformFileForTransit(std::move(checked_nexe_file));
} else {
- params.nexe_file = IPC::TakeFileHandleForProcess(
- std::move(nexe_file_), process_->GetData().handle);
+ params.nexe_file = IPC::TakePlatformFileForTransit(std::move(nexe_file_));
}
#if defined(OS_LINUX)
@@ -1261,8 +1260,7 @@ void NaClProcessHost::FileResolved(
IPC::PlatformFileForTransit out_handle;
if (file.IsValid()) {
out_file_path = file_path;
- out_handle = IPC::TakeFileHandleForProcess(std::move(file),
- process_->GetData().handle);
+ out_handle = IPC::TakePlatformFileForTransit(std::move(file));
} else {
out_handle = IPC::InvalidPlatformFileForTransit();
}
« no previous file with comments | « components/nacl/browser/nacl_host_message_filter.cc ('k') | components/nacl/renderer/manifest_service_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698