DescriptionFix thread-safety of PushMessagingMessageFilter
It used weak pointers for passing a `this` reference to callbacks that
get run on different threads, but weak pointers aren't thread-safe in
that way.
Since PushMessagingMessagingFilter extends from BrowserMessageFilter
which is RefCountedThreadSafe, this patch makes it just pass a
scoped_refptr instead (the default behavior of base::Bind).
BUG=438316
Committed: https://crrev.com/0bfd983087bfb4c4a982797acbbbb87a914c5e73
Cr-Commit-Position: refs/heads/master@{#306620}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Re-add weakptrs for long-term ui-to-ui callback #
Total comments: 3
Patch Set 3 : Tweak comment #
Messages
Total messages: 12 (3 generated)
|