[MediaStreamDeviceObserver] Reset the receiver before Bind().
Reset the receiver before Bind(), in case it was already bound, to avoid running into Bind()'s internal DCHECK that expects the receiver to not be bound. Also add a test verifying that OnDeviceChanged() behaves as expected after rebind. Bug: 1093728 Change-Id: Ic964902d3f3af3e3c6963633c13b069ecb344d96 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2250040Reviewed-by:Guido Urdaneta <guidou@chromium.org> Commit-Queue: Marina Ciocea <marinaciocea@chromium.org> Cr-Commit-Position: refs/heads/master@{#779731}
Showing
Please register or sign in to comment