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

Unified Diff: components/nacl/zygote/nacl_fork_delegate_linux.cc

Issue 24449002: NaCl: Clean up how FDs are passed to nacl_helper instances on Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review - cleanup Created 7 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
« no previous file with comments | « components/nacl/common/nacl_helper_linux.h ('k') | content/public/common/zygote_fork_delegate_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/zygote/nacl_fork_delegate_linux.cc
diff --git a/components/nacl/zygote/nacl_fork_delegate_linux.cc b/components/nacl/zygote/nacl_fork_delegate_linux.cc
index d94ad6b9fdfe5237b92fd6592eed54338da34a78..2a7e0072355e7e403cce2f6efb4385d263255454 100644
--- a/components/nacl/zygote/nacl_fork_delegate_linux.cc
+++ b/components/nacl/zygote/nacl_fork_delegate_linux.cc
@@ -258,7 +258,7 @@ bool NaClForkDelegate::CanHelp(const std::string& process_type,
pid_t NaClForkDelegate::Fork(const std::vector<int>& fds) {
VLOG(1) << "NaClForkDelegate::Fork";
- DCHECK(fds.size() == kNaClParentFDIndex + 1);
+ DCHECK(fds.size() == kNumPassedFDs);
// First, send a remote fork request.
Pickle write_pickle;
« no previous file with comments | « components/nacl/common/nacl_helper_linux.h ('k') | content/public/common/zygote_fork_delegate_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698