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

Issue 341433004: [Bluetooth] Improve the adapter's awareness of connected devices. (Closed)

Created:
6 years, 6 months ago by Ilya Sherman
Modified:
6 years, 6 months ago
Reviewers:
keybuk, armansito
CC:
chromium-reviews, armansito, rpaquay, xiyuan
Project:
chromium
Visibility:
Public.

Description

[Bluetooth] Improve the adapter's awareness of connected devices. Inform the adapter when a new, potentially unpaired device connects. In addition to notifying any observers of this event, this prevents a NULL pointer dereference in the existing logic. BUG=385493 TEST=Establish a Bluetooth connection from an unpaired device. chrome.bluetooth.onDeviceAdded() should be called. R=keybuk@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278050

Patch Set 1 #

Patch Set 2 : Net TODO delta: +1 #

Total comments: 8

Patch Set 3 : Don't call DeviceRemoved for now #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -26 lines) Patch
M device/bluetooth/bluetooth_adapter_mac.h View 2 chunks +7 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_mac.mm View 1 2 5 chunks +56 lines, -8 lines 0 comments Download
M device/bluetooth/bluetooth_channel_mac.h View 2 chunks +6 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_channel_mac.mm View 2 chunks +7 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_l2cap_channel_mac.h View 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_l2cap_channel_mac.mm View 1 chunk +2 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_rfcomm_channel_mac.h View 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_rfcomm_channel_mac.mm View 1 chunk +2 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_socket_mac.h View 4 chunks +4 lines, -4 lines 0 comments Download
M device/bluetooth/bluetooth_socket_mac.mm View 6 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Ilya Sherman
keybuk for review others as fyi and extra eyes Scott, when you connected to L2CAP ...
6 years, 6 months ago (2014-06-17 06:42:14 UTC) #1
armansito
https://codereview.chromium.org/341433004/diff/20001/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://codereview.chromium.org/341433004/diff/20001/device/bluetooth/bluetooth_adapter_mac.mm#newcode144 device/bluetooth/bluetooth_adapter_mac.mm:144: // pairing. I agree with this, since to be ...
6 years, 6 months ago (2014-06-17 14:56:43 UTC) #2
keybuk
reviewed, no additional comments
6 years, 6 months ago (2014-06-17 21:35:42 UTC) #3
Ilya Sherman
https://codereview.chromium.org/341433004/diff/20001/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://codereview.chromium.org/341433004/diff/20001/device/bluetooth/bluetooth_adapter_mac.mm#newcode144 device/bluetooth/bluetooth_adapter_mac.mm:144: // pairing. On 2014/06/17 14:56:43, armansito wrote: > I ...
6 years, 6 months ago (2014-06-17 21:43:38 UTC) #4
keybuk
https://codereview.chromium.org/341433004/diff/20001/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://codereview.chromium.org/341433004/diff/20001/device/bluetooth/bluetooth_adapter_mac.mm#newcode144 device/bluetooth/bluetooth_adapter_mac.mm:144: // pairing. CrOS for a device that was found ...
6 years, 6 months ago (2014-06-17 21:48:50 UTC) #5
armansito
https://codereview.chromium.org/341433004/diff/20001/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://codereview.chromium.org/341433004/diff/20001/device/bluetooth/bluetooth_adapter_mac.mm#newcode144 device/bluetooth/bluetooth_adapter_mac.mm:144: // pairing. > Maybe we should report devices as ...
6 years, 6 months ago (2014-06-17 22:07:23 UTC) #6
Ilya Sherman
https://codereview.chromium.org/341433004/diff/20001/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://codereview.chromium.org/341433004/diff/20001/device/bluetooth/bluetooth_adapter_mac.mm#newcode144 device/bluetooth/bluetooth_adapter_mac.mm:144: // pairing. On 2014/06/17 22:07:22, armansito wrote: > > ...
6 years, 6 months ago (2014-06-17 22:15:55 UTC) #7
armansito
lgtm
6 years, 6 months ago (2014-06-17 22:21:25 UTC) #8
keybuk
lgtm
6 years, 6 months ago (2014-06-17 23:30:21 UTC) #9
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 6 months ago (2014-06-17 23:30:32 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/341433004/40001
6 years, 6 months ago (2014-06-17 23:32:18 UTC) #11
commit-bot: I haz the power
6 years, 6 months ago (2014-06-18 13:08:54 UTC) #12
Message was sent while issue was closed.
Change committed as 278050

Powered by Google App Engine
This is Rietveld 408576698