Use thread-safe send when using Mojo.

All the work was done in r325911 by morrita. It looks like when the change landed it was disabled though, so this change just turns it on.

https://groups.google.com/a/chromium.org/d/msg/mojo-dev/gSidpDqtUFE/TY5qeUlD-mIJ has more timing, but the summary is that this makes MojoChannelPerfTest.ChannelProxyPingPong faster by 15% on Windows and roughly 40% on Linux.

In total, ChannelProxyPingPong is faster using Mojo compared to Chrome IPC by roughly 70% on Windows and on Linux it's about the same or slightly faster.

BUG=472113

Review URL: https://codereview.chromium.org/1246953003

Cr-Commit-Position: refs/heads/master@{#340216}
1 file changed