| 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 dda599ba8f496caed47f0dd2e37e740e1e764f6a..ff88399e67227e1e12c0d1f083acd3ed6c543fe4 100644
|
| --- a/components/nacl/browser/nacl_process_host.cc
|
| +++ b/components/nacl/browser/nacl_process_host.cc
|
| @@ -805,11 +805,13 @@ bool NaClProcessHost::StartNaClExecution() {
|
| }
|
|
|
| if (params.uses_irt) {
|
| - base::PlatformFile irt_file = nacl_browser->IrtFile();
|
| - CHECK_NE(irt_file, base::kInvalidPlatformFileValue);
|
| + const base::File& irt_file = nacl_browser->IrtFile();
|
| + CHECK(irt_file.IsValid());
|
| // Send over the IRT file handle. We don't close our own copy!
|
| - if (!ShareHandleToSelLdr(data.handle, irt_file, false, ¶ms.handles))
|
| + if (!ShareHandleToSelLdr(data.handle, irt_file.GetPlatformFile(), false,
|
| + ¶ms.handles)) {
|
| return false;
|
| + }
|
| }
|
|
|
| #if defined(OS_MACOSX)
|
|
|