Commit 03471faa authored by Yannic Bonenberger's avatar Yannic Bonenberger Committed by Commit Bot

Apply base_bind_rewriters to //net/socket/websocket_transport_connect_sub_job.cc

*** Note: There is no behavior change from this patch. ***

This CL replaces calls to base::{Bind,BindRepeating} with calls to
base::BindOnce, and removes calls to base::AdaptCallbackForRepeating
when the returned base::RepeatingCallback is immediately converted
to a base::OnceCallback.

This CL was uploaded by git cl split.

R=yhirano@chromium.org

Bug: 714018
Change-Id: I33444d67bd5d4d2b5d7fed7c50d77b22078c3270
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1778608Reviewed-by: default avatarYutaka Hirano <yhirano@chromium.org>
Commit-Queue: Yannic Bonenberger <contact@yannic-bonenberger.com>
Auto-Submit: Yannic Bonenberger <contact@yannic-bonenberger.com>
Cr-Commit-Position: refs/heads/master@{#692935}
parent 550c476b
......@@ -241,7 +241,7 @@ int WebSocketTransportConnectSubJob::DoTransportConnect() {
one_address, nullptr, net_log().net_log(), net_log().source());
// This use of base::Unretained() is safe because transport_socket_ is
// destroyed in the destructor.
return transport_socket_->Connect(base::Bind(
return transport_socket_->Connect(base::BindOnce(
&WebSocketTransportConnectSubJob::OnIOComplete, base::Unretained(this)));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment