DescriptionPostTask MaybeReleaseAdapter in BluetoothEventRouter::AdapterDiscoveringChanged
Calling MaybeReleaseAdapter directly from
BluetoothEventRouter::AdapterDiscoveringChanged could be a problem since
this can happen:
BluetoothAdapterBlueZ::AdapterPropertyChanged ->
BluetoothAdapterBlueZ::DiscoveringChanged ->
BluetoothEventRouter::AdapterDiscoveringChanged -> MaybeReleaseAdapter
If BluetoothEventRouter is the only pointer holder left then the caller
of BluetoothEventRouter::AdapterDiscoveringChanged could be gone even
before that function returns.
BUG=710216
Review-Url: https://codereview.chromium.org/2852773002
Cr-Commit-Position: refs/heads/master@{#468180}
Committed: https://chromium.googlesource.com/chromium/src/+/518c599b12849fb5ca778427c877c2250d116455
Patch Set 1 #
Messages
Total messages: 12 (9 generated)
|