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

Issue 319183010: device/bluetooth: Clean up classic discovery in BluetoothAdapterMac. (Closed)

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

Description

device/bluetooth: Clean up classic discovery in BluetoothAdapterMac. This CL cleans up the way the IOBluetoothDeviceInquiry object's state and the callbacks passed to AddDiscoverySession and RemoveDiscoverySession are managed by BluetoothAdapterMac. Since the API functions start and stop already report their result synchronously, success/failure can be determined without complex tracking of delegate methods. This CL moves the explicit restarting of inquiry sessions into separate class and makes AddDiscoverySession and RemoveDiscoverySession behave in a way that is consistent with the overall DiscoverySession API. BUG=381980, 345007 TEST=Tested several parallel discovery sessions on a MacBook Pro with OS 10.9.2 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276973

Patch Set 1 #

Total comments: 1

Patch Set 2 : Moved discovery manager to its own file. #

Total comments: 37

Patch Set 3 : Addressed comments by isherman@. #

Total comments: 4

Patch Set 4 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+375 lines, -176 lines) Patch
M device/bluetooth/bluetooth.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_mac.h View 1 2 3 5 chunks +11 lines, -31 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_mac.mm View 1 2 3 7 chunks +74 lines, -145 lines 0 comments Download
A device/bluetooth/bluetooth_discovery_manager_mac.h View 1 2 3 1 chunk +66 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_discovery_manager_mac.mm View 1 2 3 1 chunk +222 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
armansito
6 years, 6 months ago (2014-06-07 03:03:30 UTC) #1
keybuk
https://codereview.chromium.org/319183010/diff/1/device/bluetooth/bluetooth_adapter_mac.h File device/bluetooth/bluetooth_adapter_mac.h (right): https://codereview.chromium.org/319183010/diff/1/device/bluetooth/bluetooth_adapter_mac.h#newcode136 device/bluetooth/bluetooth_adapter_mac.h:136: class BluetoothMacClassicDiscoveryManager { I dislike having multiple classes in ...
6 years, 6 months ago (2014-06-09 17:57:39 UTC) #2
Ilya Sherman
https://codereview.chromium.org/319183010/diff/20001/device/bluetooth/bluetooth.gyp File device/bluetooth/bluetooth.gyp (right): https://codereview.chromium.org/319183010/diff/20001/device/bluetooth/bluetooth.gyp#newcode53 device/bluetooth/bluetooth.gyp:53: 'bluetooth_mac_discovery_manager.h', nit: "_mac" should be the last component in ...
6 years, 6 months ago (2014-06-10 01:11:00 UTC) #3
keybuk
https://codereview.chromium.org/319183010/diff/20001/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://codereview.chromium.org/319183010/diff/20001/device/bluetooth/bluetooth_adapter_mac.mm#newcode168 device/bluetooth/bluetooth_adapter_mac.mm:168: VLOG(1) << "Discovery stopped unexpectedly"; On 2014/06/10 01:10:59, Ilya ...
6 years, 6 months ago (2014-06-10 01:13:12 UTC) #4
Ilya Sherman
https://codereview.chromium.org/319183010/diff/20001/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://codereview.chromium.org/319183010/diff/20001/device/bluetooth/bluetooth_adapter_mac.mm#newcode168 device/bluetooth/bluetooth_adapter_mac.mm:168: VLOG(1) << "Discovery stopped unexpectedly"; On 2014/06/10 01:13:12, keybuk ...
6 years, 6 months ago (2014-06-10 01:14:05 UTC) #5
keybuk
https://codereview.chromium.org/319183010/diff/20001/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://codereview.chromium.org/319183010/diff/20001/device/bluetooth/bluetooth_adapter_mac.mm#newcode168 device/bluetooth/bluetooth_adapter_mac.mm:168: VLOG(1) << "Discovery stopped unexpectedly"; but this is _mac, ...
6 years, 6 months ago (2014-06-10 01:21:03 UTC) #6
keybuk
6 years, 6 months ago (2014-06-10 01:21:05 UTC) #7
Ilya Sherman
https://codereview.chromium.org/319183010/diff/20001/device/bluetooth/bluetooth_mac_discovery_manager.mm File device/bluetooth/bluetooth_mac_discovery_manager.mm (right): https://codereview.chromium.org/319183010/diff/20001/device/bluetooth/bluetooth_mac_discovery_manager.mm#newcode31 device/bluetooth/bluetooth_mac_discovery_manager.mm:31: #endif // MAC_OS_X_VERSION_10_7 I discovered while rebasing a CL ...
6 years, 6 months ago (2014-06-10 01:25:13 UTC) #8
armansito
https://codereview.chromium.org/319183010/diff/20001/device/bluetooth/bluetooth.gyp File device/bluetooth/bluetooth.gyp (right): https://codereview.chromium.org/319183010/diff/20001/device/bluetooth/bluetooth.gyp#newcode53 device/bluetooth/bluetooth.gyp:53: 'bluetooth_mac_discovery_manager.h', On 2014/06/10 01:10:59, Ilya Sherman wrote: > nit: ...
6 years, 6 months ago (2014-06-10 21:56:51 UTC) #9
Ilya Sherman
LGTM % a couple of nits. Thanks, Arman! https://codereview.chromium.org/319183010/diff/20001/device/bluetooth/bluetooth_mac_discovery_manager.h File device/bluetooth/bluetooth_mac_discovery_manager.h (right): https://codereview.chromium.org/319183010/diff/20001/device/bluetooth/bluetooth_mac_discovery_manager.h#newcode56 device/bluetooth/bluetooth_mac_discovery_manager.h:56: ObserverList<Observer> ...
6 years, 6 months ago (2014-06-10 23:23:01 UTC) #10
armansito
https://codereview.chromium.org/319183010/diff/20001/device/bluetooth/bluetooth_mac_discovery_manager.h File device/bluetooth/bluetooth_mac_discovery_manager.h (right): https://codereview.chromium.org/319183010/diff/20001/device/bluetooth/bluetooth_mac_discovery_manager.h#newcode56 device/bluetooth/bluetooth_mac_discovery_manager.h:56: ObserverList<Observer> observers_; On 2014/06/10 23:23:01, Ilya Sherman wrote: > ...
6 years, 6 months ago (2014-06-13 02:14:55 UTC) #11
armansito
The CQ bit was checked by armansito@chromium.org
6 years, 6 months ago (2014-06-13 02:15:03 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/armansito@chromium.org/319183010/60001
6 years, 6 months ago (2014-06-13 02:20:05 UTC) #13
commit-bot: I haz the power
6 years, 6 months ago (2014-06-13 08:37:51 UTC) #14
Message was sent while issue was closed.
Change committed as 276973

Powered by Google App Engine
This is Rietveld 408576698