Chromium Code Reviews
DescriptionFinish migration from sameThreadBindForMojo to createBaseCallback.
The sameThreadBindForMojo function is dangerous because it binds a raw
pointer into a base::Callback. If this pointer is to a heap object then
it may result in a use-after-free due to lazy sweeping. The
createBaseCallback function instead relies on WTF::bind to correctly
handle object lifetimes before converting between a WTF::Function and
base::Callback.
This patch removes sameThreadBindForMojo and converts the last few
remaining uses.
BUG=None
Committed: https://crrev.com/c9722493dd5ef4b802028fdf429a36c29ebc2ed5
Cr-Commit-Position: refs/heads/master@{#394288}
Patch Set 1 #
Messages
Total messages: 11 (5 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||