Commit 84d05388 authored by David Benjamin's avatar David Benjamin Committed by Commit Bot

Fix references to ResetAndReturn in docs.

Bug: none
Change-Id: Iadcb1b111922a417e09293e2e73bec7b464e9c13
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1869031
Commit-Queue: David Benjamin <davidben@chromium.org>
Commit-Queue: Matt Menke <mmenke@chromium.org>
Auto-Submit: David Benjamin <davidben@chromium.org>
Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#707375}
parent 49c9ad8d
...@@ -210,7 +210,7 @@ The characteristics of the DoLoop pattern are: ...@@ -210,7 +210,7 @@ The characteristics of the DoLoop pattern are:
result = DoLoop(result); result = DoLoop(result);
if (result != ERR_IO_PENDING && !callback_.is_null()) if (result != ERR_IO_PENDING && !callback_.is_null())
base::ResetAndReturn(&callback_).Run(result); std::move(callback_).Run(result);
} }
* The DoLoop pattern has no concept of different events arriving for * The DoLoop pattern has no concept of different events arriving for
......
...@@ -224,8 +224,7 @@ callback may result in the deletion of the current (calling) object. As ...@@ -224,8 +224,7 @@ callback may result in the deletion of the current (calling) object. As
further expanded upon in [Code Patterns](code-patterns.md), features and further expanded upon in [Code Patterns](code-patterns.md), features and
changes should be designed such that any callback invocation is the last changes should be designed such that any callback invocation is the last
bit of code executed, and that the callback is accessed via the stack (such bit of code executed, and that the callback is accessed via the stack (such
as through the use of either `base::ResetAndReturn(callback_).Run()` or as through the use of `std::move(callback_).Run()`.
`std::move(callback_).Run()`.
### Specs: What Are They Good For ### Specs: What Are They Good For
......
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