Make MediaRouterFileDialog hold a WeakPtr to its delegate
MRFileDialog's delegate (MediaRouterViewsUI) may get deleted before MRFileDialog if the Cast dialog somehow gets closed before the file selection dialog does. Use a WeakPtr to prevent crashes in this scenario. Bug: 1019925 Change-Id: Ibcc6e9f8297e5a40777acb87767e127afe04d197 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1894970Reviewed-by:Brandon Tolsch <btolsch@chromium.org> Commit-Queue: Takumi Fujimoto <takumif@chromium.org> Cr-Commit-Position: refs/heads/master@{#711898}
Showing
Please register or sign in to comment