DescriptionMake ChannelMojoHost::ChannelDelegate a RefContedThreadSafe
ChannelDelegate::GetWeakPtr() was called from the UI thread but
it was racy as the weak ptr is also used in the IO thread.
This CL turns ChannelDelegate a ThreadSafeRefCounted so that
we can pass ChannelDelegate itself to the task runner, instead
of using its weak ptr on the UI thread.
This change also turns some TaskRunner declarations to
SequencedTaskRunner to access its DeleteSoon() API from
ChannelDelegate.
TBR=creis@chromium.org
R=viettrungluu@chrormium.org, agl@chromium.org
BUG=460243
Committed: https://crrev.com/70b91498930876d016b9716f2cc267373287976d
Cr-Commit-Position: refs/heads/master@{#318994}
Patch Set 1 #Patch Set 2 : Updated to ToT #Patch Set 3 : Landing #
Messages
Total messages: 15 (5 generated)
|