
This fixes VideoStreamEventRouter::SetVideoChannelStateObserver() so it overwrites the previous value if it is called a second time with the same screen-id. Without this fix, the previous value would be an invalidated weak-ptr to the previous video-stream. Bug: 340606785 Change-Id: Ibd468cdfa6fc0253386f69437e6b12be9058dde6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5540215 Auto-Submit: Lambros Lambrou <lambroslambrou@chromium.org> Reviewed-by: Joe Downing <joedow@chromium.org> Commit-Queue: Lambros Lambrou <lambroslambrou@chromium.org> Cr-Commit-Position: refs/heads/main@{#1300960}