Bug 827825: Make mOtherProcess the current process for single-process IPDL protocols. r=cjones

This commit is contained in:
Bas Schouten 2013-01-09 18:42:58 +01:00
parent cf5376b186
commit fd252a586b

View File

@ -2827,7 +2827,7 @@ class _GenerateProtocolActorCode(ipdl.ast.Visitor):
ret=Type.BOOL))
openmeth.addstmts([
StmtExpr(ExprAssn(p.otherProcessVar(), ExprLiteral.ZERO)),
StmtExpr(ExprAssn(p.otherProcessVar(), ExprCall(ExprVar('base::GetCurrentProcessHandle')))),
StmtReturn(ExprCall(ExprSelect(p.channelVar(), '.', 'Open'),
[ aChannel, aMessageLoop, sidevar ]))
])