Fix a crash in MediaSessionServiceImpl due to life time issue
Previously we assume MediaSessionServiceImpl is owned by RenderFrameHost
and will be destroyed as RenderFrameHost is destroyed. However this does
not stand and MediaSessionServiceImpl may outlive RenderFrameHost.
Therefore it is unsafe to keep a raw RenderFrameHost pointer in
MediaSessionServiceImpl.
This CL fixes a crash due to this issue.
BUG=695398
Review-Url: https://codereview.chromium.org/2715723002
Cr-Commit-Position: refs/heads/master@{#452649}
4 files changed