• sergeyu's avatar
    Fix JingleThreadWrapper initialization in PNaCl plugin. · 8eb15cc4
    sergeyu authored
    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}
    8eb15cc4
thread_wrapper.cc 8.46 KB