PostTask 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}
Showing
Please register or sign in to comment