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:
@ -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);
|
||||
|
Reference in New Issue
Block a user