DescriptionCorrect threading documentation example.
Calling a callback with a raw pointer argument while binding a scoped_refptr to
it requires using base::RetainedRef. Correct the same in threading
documentation. Also, introduce std::move in the example to demonstrate
preventing an extra AddRef/Release pair.
BUG=None
Review-Url: https://codereview.chromium.org/2944313004
Cr-Commit-Position: refs/heads/master@{#482065}
Committed: https://chromium.googlesource.com/chromium/src/+/09f8883243cb82866287f401457d10523d0f2d05
Patch Set 1 #
Total comments: 4
Patch Set 2 : Address review. #Messages
Total messages: 13 (7 generated)
|