Convert bluetooth_socket_api to BindOnce
This CL converts two functions to use BindOnce: - BluetoothSocketSendFunction - BluetoothSocketDisconnectFunction In both cases, the callback is passed to a method on |socket_| which already takes a OnceCallback so this is a safe change. The Send function requires a bit of extra work due to the error callback but this is also obviously a OnceCallback. Bug: 1152268 Change-Id: Ieb457c3d86f63732f33f851ac1f659e35af9a44c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2592249 Commit-Queue: David Bokan <bokan@chromium.org> Reviewed-by:Reilly Grant <reillyg@chromium.org> Cr-Commit-Position: refs/heads/master@{#837638}
Showing
Please register or sign in to comment