0

Update docs/callback.md.

Remove `base::DoNothing::Once` from the callback documentation because
the entity doesn't exists anymore. It is replaced by
`base::DoNothingAs`. See http://crbug.com/1252980 for details.

Bug: 1252980
Change-Id: Ic473d274912e37d06fc1c4424e70a909ff857aa5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3702843
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Auto-Submit: Dmitrii Kuragin <kuragin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1014124}
This commit is contained in:
Dmitrii Kuragin
2022-06-14 20:17:21 +00:00
committed by Chromium LUCI CQ
parent ffc492fb1a
commit 2e7da865d6

@ -459,7 +459,7 @@ compile), you can instantiate directly:
```cpp
// Binds |foo_ptr| to a no-op OnceCallback takes a scoped_refptr<Foo>.
// ANTIPATTERN WARNING: This should likely be changed to ReleaseSoon()!
base::BindOnce(base::DoNothing::Once<scoped_refptr<Foo>>(), foo_ptr);
base::BindOnce(base::DoNothingAs<void(scoped_refptr<Foo>)>(), foo_ptr);
```
### Passing Unbound Input Parameters