Commit 81f9304f authored by Yannic Bonenberger's avatar Yannic Bonenberger Committed by Commit Bot

Apply base_bind_rewriters to //net/proxy_resolution/proxy_resolver_v8_tracing.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=jochen@chromium.org

Bug: 714018
Change-Id: Id5caaee0bd00721b4463880d6ba3c8121d533468
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1778548
Auto-Submit: Yannic Bonenberger <contact@yannic-bonenberger.com>
Reviewed-by: default avatarJochen Eisinger <jochen@chromium.org>
Commit-Queue: Jochen Eisinger <jochen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#694745}
parent c3036aa9
......@@ -519,8 +519,9 @@ void Job::Start(Operation op,
owned_self_reference_ = this;
worker_task_runner()->PostTask(
FROM_HERE, blocking_dns_ ? base::Bind(&Job::ExecuteBlocking, this)
: base::Bind(&Job::ExecuteNonBlocking, this));
FROM_HERE, blocking_dns_
? base::BindOnce(&Job::ExecuteBlocking, this)
: base::BindOnce(&Job::ExecuteNonBlocking, this));
}
void Job::ExecuteBlocking() {
......@@ -1005,7 +1006,7 @@ class ProxyResolverV8TracingFactoryImpl::CreateJob
create_resolver_job_ = new Job(job_params_.get(), std::move(bindings));
create_resolver_job_->StartCreateV8Resolver(
pac_script, &v8_resolver_,
base::Bind(
base::BindOnce(
&ProxyResolverV8TracingFactoryImpl::CreateJob::OnV8ResolverCreated,
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