Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Issue 2852773002: PostTask MaybeReleaseAdapter in BluetoothEventRouter::AdapterDiscoveringChanged (Closed)

Created:
3 years, 7 months ago by Sonny Sasaka
Modified:
3 years, 7 months ago
Reviewers:
stevenjb
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

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} Committed: https://chromium.googlesource.com/chromium/src/+/518c599b12849fb5ca778427c877c2250d116455

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -2 lines) Patch
M extensions/browser/api/bluetooth/bluetooth_event_router.cc View 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (9 generated)
stevenjb
This lgtm because I am pretty sure this is safer than the current code, but ...
3 years, 7 months ago (2017-04-28 23:03:45 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2852773002/1
3 years, 7 months ago (2017-04-28 23:24:54 UTC) #9
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 23:34:43 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/518c599b12849fb5ca778427c877...

Powered by Google App Engine
This is Rietveld 408576698