DescriptionAllow passing WeakPtr across threads without AllowCrossThreadAccess()
This removes AllowCrossThreadAccess() for WeakPtr and
adds CrossThreadCopier for WeakPtr instead.
This CL doesn't introduce crossThreadWeakPtr(), because:
- If the thread restriction of WeakPtr is violated, the assertions in WeakPtr
will fail quite reliably if covered by tests. Therefore, annotations like
AllowCrossThreadAccess()/crossThreadWeakPtr() is not so essential in
catching errors.
- There is no CrossThreadWeakPtr, so the wrapper crossThreadWeakPtr() can be
confusing.
BUG=597856
Committed: https://crrev.com/e656f4c55f88ea32473335e17d6fc2065f119ef2
Cr-Commit-Position: refs/heads/master@{#394154}
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : auto-Rebase #Patch Set 4 : Rebase, Add CrossThreadCopier for WeakPTr #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 30 (15 generated)
|