| Index: base/threading/post_task_and_reply_impl.cc
|
| diff --git a/base/threading/post_task_and_reply_impl.cc b/base/threading/post_task_and_reply_impl.cc
|
| index cddb8981adfdbe406978efd7253388d2e675e8ed..1aaa1e7dda6f06a76b8b1171cce205e3a42d403a 100644
|
| --- a/base/threading/post_task_and_reply_impl.cc
|
| +++ b/base/threading/post_task_and_reply_impl.cc
|
| @@ -44,8 +44,8 @@ class PostTaskAndReplyRelay {
|
| void RunTaskAndPostReply() {
|
| std::move(task_).Run();
|
| origin_task_runner_->PostTask(
|
| - from_here_, Bind(&PostTaskAndReplyRelay::RunReplyAndSelfDestruct,
|
| - base::Unretained(this)));
|
| + from_here_, BindOnce(&PostTaskAndReplyRelay::RunReplyAndSelfDestruct,
|
| + base::Unretained(this)));
|
| }
|
|
|
| private:
|
| @@ -88,8 +88,8 @@ bool PostTaskAndReplyImpl::PostTaskAndReply(
|
| // to avoid having to suppress every callsite which happens to flakily trigger
|
| // this race.
|
| ANNOTATE_LEAKING_OBJECT_PTR(relay);
|
| - if (!PostTask(from_here, Bind(&PostTaskAndReplyRelay::RunTaskAndPostReply,
|
| - Unretained(relay)))) {
|
| + if (!PostTask(from_here, BindOnce(&PostTaskAndReplyRelay::RunTaskAndPostReply,
|
| + Unretained(relay)))) {
|
| delete relay;
|
| return false;
|
| }
|
|
|