Descriptionbluetooth: Detect and fix incorrect thread usage of BluetoothDispatcherHost.
Android GATT connection state changes may arrive on threads other than UI.
However, this wasn't previously detected.
This patch adds a WeakPtr instance to ensure all future WeakPtrs created
by the factory enforce UI thread usage.
Android device implementation is adjusted to run callbacks from UI thread.
The nature of WeakPtr has been more clearly documented here:
https://codereview.chromium.org/1384863002/
BUG=537471
Committed: https://crrev.com/0e9bbf5fff69296187af509f460b813fc6c64e67
Cr-Commit-Position: refs/heads/master@{#352462}
Patch Set 1 #
Total comments: 6
Patch Set 2 : Address qinmin #Patch Set 3 : DCHECK_CURRENTLY_ON(BrowserThread::UI); #
Dependent Patchsets: Messages
Total messages: 12 (3 generated)
|