Fix notification/media session in Cast and MediaFling
There was a bug that BaseSessionController holds weak reference to callbacks to avoid holding callback references unnecessary. This was to prevent potential memory leaks, however the BaseNotificationController instance was somehow dereferenced in public release build (perhaps due to some optimization). This causes Cast/MediaFling to not set up media notification and MediaSession properly. This CL fixes the issue by making BaseSessionController holding strong references. Clients are responsible to remove the callbacks when not needed. Bug: 978940 Change-Id: If2146cd2a5c3036897c61cf842e7054182b46055 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1843959Reviewed-by:Thomas Guilbert <tguilbert@chromium.org> Commit-Queue: Zhiqiang Zhang <zqzhang@chromium.org> Cr-Commit-Position: refs/heads/master@{#703448}
Showing
Please register or sign in to comment