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

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

Issue 165663002: Remove some PlatformFile uses from NaCl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add empty line Created 6 years, 10 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 | « components/nacl/browser/nacl_process_host.h ('k') | components/nacl/browser/pnacl_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a5a1341dcfb16c65a3bcc8baf41eccd24c8c6b65..9c18115949f6ed9e99845ee626ac00cb3e8f6817 100644
--- a/components/nacl/browser/nacl_process_host.cc
+++ b/components/nacl/browser/nacl_process_host.cc
@@ -868,12 +868,11 @@ void NaClProcessHost::OnSetKnownToValidate(const std::string& signature) {
void NaClProcessHost::FileResolved(
const base::FilePath& file_path,
IPC::Message* reply_msg,
- const base::PlatformFile& file) {
- if (file != base::kInvalidPlatformFileValue) {
- IPC::PlatformFileForTransit handle = IPC::GetFileHandleForProcess(
- file,
- process_->GetData().handle,
- true /* close_source */);
+ base::File file) {
+ if (file.IsValid()) {
+ IPC::PlatformFileForTransit handle = IPC::TakeFileHandleForProcess(
+ file.Pass(),
+ process_->GetData().handle);
NaClProcessMsg_ResolveFileToken::WriteReplyParams(
reply_msg,
handle,
« no previous file with comments | « components/nacl/browser/nacl_process_host.h ('k') | components/nacl/browser/pnacl_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698