cros_healthd: use weak_ptr factory in service_connection
This is cleaning up uses of base::Unretained(this) in the cros_healthd service connection. There are cases where the service connection could be destroyed before the callback returns. Bug: chromium:1108065 Change-Id: I66639581e213cc088080de5ec407f06968b8559c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2311074 Commit-Queue: Trent Begin <tbegin@chromium.org> Reviewed-by:Paul Moy <pmoy@chromium.org> Reviewed-by:
Steven Bennetts <stevenjb@chromium.org> Cr-Commit-Position: refs/heads/master@{#791995}
Showing
Please register or sign in to comment