Separate unregistration from destruction of webrtc observers.
commit70f52c453a82607a253d9a2fad913635da8cc695
authortommi <tommi@chromium.org>
Wed, 5 Nov 2014 20:07:12 +0000 (5 12:07 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 5 Nov 2014 20:07:28 +0000 (5 20:07 +0000)
tree57d101a7dcf51333ac753916e77cfb3e7cb929b3
parent519adfb0f4610edf51541dd2e0cae5217f8bd7af
Separate unregistration from destruction of webrtc observers.
This is to avoid a situation where we addref on the signaling thread
while destructing and unregistering from another thread.
Unregistration has to happen before the object can be released.

BUG=378065
TBR=perkj

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

Cr-Commit-Position: refs/heads/master@{#302854}
content/renderer/media/remote_media_stream_impl.cc
content/renderer/media/remote_media_stream_impl.h
content/renderer/media/webrtc/media_stream_remote_video_source.cc
content/renderer/media/webrtc/media_stream_remote_video_source.h