via 'new' inside XWalkMainDelegate::CreateContentRendererClient, like you did at the beginning.. As told adding a factory function turned to be a bad idea in this case :(