Fix JingleThreadWrapper initialization in PNaCl plugin.
Previously JingleThreadWrapper was initialized in the remoting PNaCl plugin such that JingleThreadWrapper::current() was always returning NULL. JingleThreadWrapper::current() is used only to implement rtc::Thread::Send() and until recently Send() wasn't used in the parts of webrtc used in remoting. Now rtc::StunRequest uses Send(), which crashes the plugin. Added JingleThreadWrapper::WrapTaskRunner() that properly initializes current() and is used in the remoting plugin now. Also JingleThreadWrapper is no longer passes SocketServer to the parent as it is no longer necessary. BUG=451643 Review URL: https://codereview.chromium.org/876433003 Cr-Commit-Position: refs/heads/master@{#313213}
Showing
Please register or sign in to comment