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

Unified Diff: mojo/nacl/nonsfi/nexe_launcher_nonsfi.cc

Issue 1382713002: Creating a pexe content handler to translate and run pexes. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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: mojo/nacl/nonsfi/nexe_launcher_nonsfi.cc
diff --git a/mojo/nacl/nonsfi/nexe_launcher_nonsfi.cc b/mojo/nacl/nonsfi/nexe_launcher_nonsfi.cc
index c8edb8b0a959c55c67f9f08b406949a7995d14f8..778ee73942e0d030d372c1df3a3b0116372e4985 100644
--- a/mojo/nacl/nonsfi/nexe_launcher_nonsfi.cc
+++ b/mojo/nacl/nonsfi/nexe_launcher_nonsfi.cc
@@ -12,10 +12,15 @@
namespace nacl {
-void MojoLaunchNexeNonsfi(int nexe_fd, MojoHandle initial_handle) {
+void MojoLaunchNexeNonsfi(int nexe_fd, MojoHandle initial_handle,
+ bool enable_translate_irt) {
// Run -- also, closes the nexe_fd, removing the temp file.
uintptr_t entry = NaClLoadElfFile(nexe_fd);
+ // Enable the translation section of the IRT, if requested.
+ if (enable_translate_irt) {
+ MojoPnaclTranslatorEnable();
+ }
MojoSetInitialHandle(initial_handle);
int argc = 1;
char* argvp = const_cast<char*>("NaClMain");

Powered by Google App Engine
This is Rietveld 408576698