WebRtcMediaStreamTrackAdapter: Ensure destruction on main thread.
Adds destructor traits to ensure WebRtcMediaStreamTrackAdapter, which is reference counted, is destroyed on the main thread. Due to references in base::Bind-ings, possibly from third_party/webrtc or elsewhere, destruction did not always occur on the main thread. The mix of reference counting and usage on multiple threads is just inherently risky. This change allows us to add a DCHECK in the destructor and fixes one of the most common crashes currently in Canary. Bug: 888460 Change-Id: I30948f1ade16769bfc3c94a6a2893df7c56c8d5a Reviewed-on: https://chromium-review.googlesource.com/1254206Reviewed-by:Guido Urdaneta <guidou@chromium.org> Commit-Queue: Henrik Boström <hbos@chromium.org> Cr-Commit-Position: refs/heads/master@{#595762}
Showing
Please register or sign in to comment