0

docs: fix example parameter name in threading_and_tasks_testing

The parameter name passed to the DoSomethingAndReply example function
does not match the name of the callback given to PostTask.

Bug: none
Change-Id: I7899a22880adb0ea98f717e6415a3ce562853ef6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2121349
Auto-Submit: Trent Begin <tbegin@chromium.org>
Reviewed-by: Gabriel Charette <gab@chromium.org>
Commit-Queue: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#753423}
This commit is contained in:
Trent Begin
2020-03-25 23:06:54 +00:00
committed by Commit Bot
parent 85fe17ba56
commit be87142426

@ -54,7 +54,7 @@ class Foo {
public:
Foo() : owning_sequence_(base::SequencedTaskRunnerHandle::Get()) {}
DoSomethingAndReply(base::OnceClosure reply) {
DoSomethingAndReply(base::OnceClosure on_done) {
DCHECK(owning_sequence_->RunsTasksInCurrentSequence());
something_was_done_ = true;
owning_sequence_->PostTask(on_done);