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

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

Issue 251883002: Replace FileUtilProxy with FileProxy on NaClBrowser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix indentation Created 6 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 | « components/nacl/browser/nacl_browser.cc ('k') | no next file » | 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 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, &params.handles))
+ if (!ShareHandleToSelLdr(data.handle, irt_file.GetPlatformFile(), false,
+ &params.handles)) {
return false;
+ }
}
#if defined(OS_MACOSX)
« no previous file with comments | « components/nacl/browser/nacl_browser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698