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

Issue 982593002: Fix BluetoothAdapterProfileChromeOS lifecycle management (Closed)

Created:
5 years, 9 months ago by Marie Janssen
Modified:
5 years, 9 months ago
CC:
chromium-reviews, rginda+watch_chromium.org, stevenjb+watch_chromium.org, hashimoto+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix BluetoothAdapterProfileChromeOS lifecycle management Have BluetoothAdapterProfileChromeOS objects managed through BluetoothAdapterChromeOS, avoiding problems where references were being left behind in BluetoothSocketChromeOS after deletion. Adds some unit tests to confirm lifecycle works correctly even when multiple profiles are requested simultaneously. This is a resubmit of https://codereview.chromium.org/935383003/ after a revert for LSan test failures https://codereview.chromium.org/975323002/, a patch with just changes from the old CL can be found there. BUG=457978 R=armansito, isherman@chromium.org, keybuk Committed: https://crrev.com/202fef401ecfdef89837e709847f4e2189f0ee31 Cr-Commit-Position: refs/heads/master@{#319721}

Patch Set 1 #

Total comments: 4

Patch Set 2 : use scoped_ptr as applicable #

Total comments: 5

Patch Set 3 : fix possible double free, code cleanup #

Total comments: 8

Patch Set 4 : address nits, remove test debug logging #

Unified diffs Side-by-side diffs Delta from patch set Stats (+339 lines, -134 lines) Patch
M chromeos/dbus/fake_bluetooth_profile_manager_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_profile_manager_client.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_chromeos.h View 1 3 chunks +18 lines, -8 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_chromeos.cc View 1 4 chunks +66 lines, -21 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_profile_chromeos.h View 1 4 chunks +15 lines, -10 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_profile_chromeos.cc View 1 2 3 2 chunks +9 lines, -13 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_profile_chromeos_unittest.cc View 1 2 3 11 chunks +126 lines, -40 lines 0 comments Download
M device/bluetooth/bluetooth_chromeos_unittest.cc View 1 7 chunks +15 lines, -19 lines 0 comments Download
M device/bluetooth/bluetooth_socket_chromeos.h View 1 chunk +2 lines, -4 lines 0 comments Download
M device/bluetooth/bluetooth_socket_chromeos.cc View 5 chunks +8 lines, -18 lines 0 comments Download
M device/bluetooth/bluetooth_socket_chromeos_unittest.cc View 2 chunks +69 lines, -1 line 0 comments Download

Messages

Total messages: 14 (2 generated)
Marie Janssen
Fix for memory leaks. See https://codereview.chromium.org/935383003/ patchset 8 for diffs from previous CL.
5 years, 9 months ago (2015-03-04 18:20:40 UTC) #1
Ilya Sherman
Thanks, Michael. Note that the best practice is to upload the reverted patch as Patch ...
5 years, 9 months ago (2015-03-04 19:12:48 UTC) #2
Ilya Sherman
Sorry, I added my other comment to the wrong CL: https://codereview.chromium.org/982593002/diff/1/device/bluetooth/bluetooth_adapter_profile_chromeos.cc File device/bluetooth/bluetooth_adapter_profile_chromeos.cc (right): https://codereview.chromium.org/982593002/diff/1/device/bluetooth/bluetooth_adapter_profile_chromeos.cc#newcode41 ...
5 years, 9 months ago (2015-03-04 19:20:20 UTC) #3
Marie Janssen
https://codereview.chromium.org/982593002/diff/1/device/bluetooth/bluetooth_adapter_profile_chromeos.cc File device/bluetooth/bluetooth_adapter_profile_chromeos.cc (right): https://codereview.chromium.org/982593002/diff/1/device/bluetooth/bluetooth_adapter_profile_chromeos.cc#newcode41 device/bluetooth/bluetooth_adapter_profile_chromeos.cc:41: new BluetoothAdapterProfileChromeOS(uuid); On 2015/03/04 19:20:20, Ilya Sherman wrote: > ...
5 years, 9 months ago (2015-03-04 23:45:02 UTC) #4
Ilya Sherman
https://codereview.chromium.org/982593002/diff/20001/device/bluetooth/bluetooth_adapter_profile_chromeos.cc File device/bluetooth/bluetooth_adapter_profile_chromeos.cc (right): https://codereview.chromium.org/982593002/diff/20001/device/bluetooth/bluetooth_adapter_profile_chromeos.cc#newcode49 device/bluetooth/bluetooth_adapter_profile_chromeos.cc:49: error_callback)); This looks to me like it will actually ...
5 years, 9 months ago (2015-03-05 04:33:55 UTC) #5
Marie Janssen
https://codereview.chromium.org/982593002/diff/20001/device/bluetooth/bluetooth_adapter_profile_chromeos.cc File device/bluetooth/bluetooth_adapter_profile_chromeos.cc (right): https://codereview.chromium.org/982593002/diff/20001/device/bluetooth/bluetooth_adapter_profile_chromeos.cc#newcode49 device/bluetooth/bluetooth_adapter_profile_chromeos.cc:49: error_callback)); On 2015/03/05 04:33:54, Ilya Sherman wrote: > This ...
5 years, 9 months ago (2015-03-09 16:22:50 UTC) #6
Ilya Sherman
Thanks, Michael. The memory management LGTM now. I defer to Arman and Scott for the ...
5 years, 9 months ago (2015-03-09 18:18:51 UTC) #7
Marie Janssen
https://codereview.chromium.org/982593002/diff/40001/device/bluetooth/bluetooth_adapter_profile_chromeos.cc File device/bluetooth/bluetooth_adapter_profile_chromeos.cc (right): https://codereview.chromium.org/982593002/diff/40001/device/bluetooth/bluetooth_adapter_profile_chromeos.cc#newcode36 device/bluetooth/bluetooth_adapter_profile_chromeos.cc:36: error_callback); On 2015/03/09 18:18:51, Ilya Sherman wrote: > nit: ...
5 years, 9 months ago (2015-03-09 18:38:40 UTC) #8
armansito
lgtm
5 years, 9 months ago (2015-03-09 19:14:37 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/982593002/60001
5 years, 9 months ago (2015-03-09 19:15:07 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-03-09 20:20:42 UTC) #13
commit-bot: I haz the power
5 years, 9 months ago (2015-03-09 20:21:25 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/202fef401ecfdef89837e709847f4e2189f0ee31
Cr-Commit-Position: refs/heads/master@{#319721}

Powered by Google App Engine
This is Rietveld 408576698