DescriptionAvoid retaining a reference to ActivityIconLoader in its OnIconReady()
ActivityIconLoader has a non thread safe refcount, and hops to the
other thread with PostTaskAndReplyWithResult.
Though that is safe in the current implementation of PostTaskAndReplyWithResult,
it's fragile and upcoming PostTaskAndReplyWithResult will break it.
This CL removes the refcount bump on the thread hop to avoid a racy
refcount decrement.
Review-Url: https://codereview.chromium.org/2655213004
Cr-Commit-Position: refs/heads/master@{#446332}
Committed: https://chromium.googlesource.com/chromium/src/+/7ef354f5af9e651f60ed079fdbb176b924952e31
Patch Set 1 #
Total comments: 2
Patch Set 2 : +static #Patch Set 3 : +-DCHECK(thread_checker_.COVT()); #
Messages
Total messages: 20 (14 generated)
|