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

Unified Diff: components/nacl/loader/nacl_listener.cc

Issue 164373010: Split the PNaCl IRT shim into 3 pieces, and include one piece into IRT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix headers 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
Index: components/nacl/loader/nacl_listener.cc
diff --git a/components/nacl/loader/nacl_listener.cc b/components/nacl/loader/nacl_listener.cc
index c35d946d5bbb369ac221ee5e96a359dfb93e94ff..97ddd5df89a7a42f7ef9946764eee7363912f11a 100644
--- a/components/nacl/loader/nacl_listener.cc
+++ b/components/nacl/loader/nacl_listener.cc
@@ -352,6 +352,11 @@ void NaClListener::OnStart(const nacl::NaClStartParams& params) {
// PNaCl because it might break existing NaCl apps, and this limit
// is only useful if the dyncode syscalls are disabled.
args->initial_nexe_max_code_bytes = 32 << 20; // 32 MB
+
+ // Only enable the IRT shim ppapi hook for PNaCl pexes (not nexes).
+ // TODO(jvoung): Plumb through something indicating that this is PNaCl
+ // instead of relying on enable_dyncode_syscalls.
+ args->enable_irt_shim = 1;
}
#if defined(OS_LINUX) || defined(OS_MACOSX)
args->debug_stub_server_bound_socket_fd = nacl::ToNativeHandle(

Powered by Google App Engine
This is Rietveld 408576698