Commit 0e5e572f authored by Yannic Bonenberger's avatar Yannic Bonenberger Committed by Commit Bot

Apply base_bind_rewriters to //net/cert_net

*** 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=mattm@chromium.org

Bug: 714018
Change-Id: I555437179dc4b607c77ac84e91117a4ef36bb15e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1778778
Auto-Submit: Yannic Bonenberger <contact@yannic-bonenberger.com>
Reviewed-by: default avatarMatt Mueller <mattm@chromium.org>
Commit-Queue: Matt Mueller <mattm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#692321}
parent 8f88ce31
......@@ -501,9 +501,9 @@ void Job::StartURLRequest(URLRequestContext* context) {
// Start a timer to limit how long the job runs for.
if (request_params_->timeout > base::TimeDelta())
timer_.Start(
FROM_HERE, request_params_->timeout,
base::Bind(&Job::FailRequest, base::Unretained(this), ERR_TIMED_OUT));
timer_.Start(FROM_HERE, request_params_->timeout,
base::BindOnce(&Job::FailRequest, base::Unretained(this),
ERR_TIMED_OUT));
}
void Job::Cancel() {
......
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