| 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,
|
|
|