Eliminate usage of SupportsWeakPtr from WebSocketFactory
Inheriting from SupportsWeakPtr<T> is error-prone because weak pointers are not invalidated until the parent object has been partially destroyed. Use WeakPtrFactory instead in WebSocketFactory::Delegate. WebSocketFactory doesn't need weak pointers at all, so remove it completely from there. Bug: 721400 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo Change-Id: I94f8dc6fa20b4ede14295760db44bdeaae207610 Reviewed-on: https://chromium-review.googlesource.com/981964Reviewed-by:Yutaka Hirano <yhirano@chromium.org> Commit-Queue: Adam Rice <ricea@chromium.org> Cr-Commit-Position: refs/heads/master@{#546074}
Showing
Please register or sign in to comment