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

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

Issue 1051243002: Non-SFI: move socketpair() from plugin process to browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: components/nacl/browser/nacl_host_message_filter.cc
diff --git a/components/nacl/browser/nacl_host_message_filter.cc b/components/nacl/browser/nacl_host_message_filter.cc
index 9da3fe51726b73a3082b190a47e3cf2ddb617f2f..b676ed368f1f9a80ec5ff64dd82befca7eb36754 100644
--- a/components/nacl/browser/nacl_host_message_filter.cc
+++ b/components/nacl/browser/nacl_host_message_filter.cc
@@ -27,12 +27,12 @@ namespace {
// The maximum number of resource file handles NaClProcessMsg_Start message
// can have. Currently IPC::MessageAttachmentSet::kMaxDescriptorsPerMessage
-// is 128 and NaCl sends 5 handles for other purposes, hence 123.
-const size_t kMaxPreOpenResourceFiles = 123;
+// is 128 and NaCl sends 13 handles for other purposes, hence 115.
+const size_t kMaxPreOpenResourceFiles = 115;
#if defined(OS_POSIX)
static_assert(kMaxPreOpenResourceFiles ==
- IPC::MessageAttachmentSet::kMaxDescriptorsPerMessage - 5,
+ IPC::MessageAttachmentSet::kMaxDescriptorsPerMessage - 13,
"kMaxPreOpenResourceFiles is not up to date");
#endif
« no previous file with comments | « no previous file | components/nacl/browser/nacl_process_host.cc » ('j') | components/nacl/browser/nacl_process_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698