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

Issue 791763005: Added bluetooth LE support on Mac platform (Closed)

Created:
5 years, 11 months ago by dvh
Modified:
5 years, 10 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added bluetooth LE support on Mac platform BUG=449682 Committed: https://crrev.com/42f79f8b08a99190627f3a67e86a378987104a4a Cr-Commit-Position: refs/heads/master@{#315190}

Patch Set 1 : #

Patch Set 2 : #

Total comments: 48

Patch Set 3 : feedback. #

Total comments: 53

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Total comments: 2

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+634 lines, -33 lines) Patch
M base/mac/sdk_forward_declarations.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +63 lines, -0 lines 0 comments Download
M device/bluetooth/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_discovery_manager_mac.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
A + device/bluetooth/bluetooth_low_energy_device_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +40 lines, -33 lines 0 comments Download
A device/bluetooth/bluetooth_low_energy_device_mac.mm View 1 2 3 4 5 6 7 1 chunk +237 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_low_energy_discovery_manager_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +103 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm View 1 2 3 4 5 1 chunk +180 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (19 generated)
dvh
Hi Armansito, Please take a look. Thanks!
5 years, 11 months ago (2015-01-21 22:26:37 UTC) #7
armansito
https://codereview.chromium.org/791763005/diff/120001/device/bluetooth/bluetooth_low_energy_device_mac.h File device/bluetooth/bluetooth_low_energy_device_mac.h (left): https://codereview.chromium.org/791763005/diff/120001/device/bluetooth/bluetooth_low_energy_device_mac.h#oldcode8 device/bluetooth/bluetooth_low_energy_device_mac.h:8: #import <IOBluetooth/IOBluetooth.h> Does importing IOBluetooth.h on Mac also include ...
5 years, 11 months ago (2015-01-24 17:59:38 UTC) #8
armansito
https://codereview.chromium.org/791763005/diff/120001/device/bluetooth/bluetooth_low_energy_device_mac.h File device/bluetooth/bluetooth_low_energy_device_mac.h (right): https://codereview.chromium.org/791763005/diff/120001/device/bluetooth/bluetooth_low_energy_device_mac.h#newcode26 device/bluetooth/bluetooth_low_energy_device_mac.h:26: nit: We usually don't add new lines between override ...
5 years, 11 months ago (2015-01-24 18:07:10 UTC) #9
dvh
Most of the issues have been addresses + some questions. https://codereview.chromium.org/791763005/diff/120001/device/bluetooth/bluetooth_low_energy_device_mac.h File device/bluetooth/bluetooth_low_energy_device_mac.h (left): https://codereview.chromium.org/791763005/diff/120001/device/bluetooth/bluetooth_low_energy_device_mac.h#oldcode8 ...
5 years, 11 months ago (2015-01-27 00:14:56 UTC) #10
dvh
armansito@, could you take a look? Thanks!
5 years, 10 months ago (2015-01-28 18:45:50 UTC) #11
armansito
https://codereview.chromium.org/791763005/diff/120001/device/bluetooth/bluetooth_low_energy_device_mac.h File device/bluetooth/bluetooth_low_energy_device_mac.h (left): https://codereview.chromium.org/791763005/diff/120001/device/bluetooth/bluetooth_low_energy_device_mac.h#oldcode8 device/bluetooth/bluetooth_low_energy_device_mac.h:8: #import <IOBluetooth/IOBluetooth.h> On 2015/01/27 00:14:55, dvh wrote: > On ...
5 years, 10 months ago (2015-01-29 04:37:19 UTC) #12
dvh
> https://codereview.chromium.org/791763005/diff/120001/device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm#newcode161 > device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm:161: > [[CBCentralManager alloc] initWithDelegate:bridge_ > On 2015/01/27 00:14:56, dvh wrote: > ...
5 years, 10 months ago (2015-01-29 04:48:42 UTC) #14
dvh
> No, I like keeping the LE stuff separate from BluetoothDiscoveryManagerMac, we > get this ...
5 years, 10 months ago (2015-01-29 04:53:01 UTC) #15
Avi (use Gerrit)
I would highly recommend looking in base/. There are lots of utilities in there that ...
5 years, 10 months ago (2015-01-29 05:25:03 UTC) #17
groby-ooo-7-16
Sorry for completely missing this... https://codereview.chromium.org/791763005/diff/120001/device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm File device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm (right): https://codereview.chromium.org/791763005/diff/120001/device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm#newcode161 device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm:161: [[CBCentralManager alloc] initWithDelegate:bridge_ On ...
5 years, 10 months ago (2015-01-30 15:10:32 UTC) #19
dvh
Updated. Please take a look. Thanks! https://codereview.chromium.org/791763005/diff/140001/device/bluetooth/bluetooth_low_energy_device_mac.h File device/bluetooth/bluetooth_low_energy_device_mac.h (right): https://codereview.chromium.org/791763005/diff/140001/device/bluetooth/bluetooth_low_energy_device_mac.h#newcode8 device/bluetooth/bluetooth_low_energy_device_mac.h:8: #if TARGET_IPHONE_SIMULATOR || ...
5 years, 10 months ago (2015-01-30 22:45:46 UTC) #20
Avi (use Gerrit)
https://codereview.chromium.org/791763005/diff/140001/device/bluetooth/bluetooth_low_energy_device_mac.mm File device/bluetooth/bluetooth_low_energy_device_mac.mm (right): https://codereview.chromium.org/791763005/diff/140001/device/bluetooth/bluetooth_low_energy_device_mac.mm#newcode11 device/bluetooth/bluetooth_low_energy_device_mac.mm:11: using namespace device; On 2015/01/30 22:45:45, dvh wrote: > ...
5 years, 10 months ago (2015-01-30 23:18:31 UTC) #21
dvh
Updated. Please take a look again. Thanks! https://codereview.chromium.org/791763005/diff/180001/device/bluetooth/bluetooth_low_energy_device_mac.mm File device/bluetooth/bluetooth_low_energy_device_mac.mm (right): https://codereview.chromium.org/791763005/diff/180001/device/bluetooth/bluetooth_low_energy_device_mac.mm#newcode60 device/bluetooth/bluetooth_low_energy_device_mac.mm:60: } On ...
5 years, 10 months ago (2015-01-30 23:57:55 UTC) #22
Avi (use Gerrit)
lgtm https://codereview.chromium.org/791763005/diff/200001/device/bluetooth/bluetooth_discovery_manager_mac.h File device/bluetooth/bluetooth_discovery_manager_mac.h (right): https://codereview.chromium.org/791763005/diff/200001/device/bluetooth/bluetooth_discovery_manager_mac.h#newcode22 device/bluetooth/bluetooth_discovery_manager_mac.h:22: virtual ~Observer() {} nit: put this in a ...
5 years, 10 months ago (2015-01-31 02:22:38 UTC) #23
dvh
groby@, Could you take an other look? Thanks. armansito@, Could you take a look at ...
5 years, 10 months ago (2015-02-02 19:00:50 UTC) #24
groby-ooo-7-16
LGTM w/ tiny nit (Caveat - I'm not an owner, so mostly a syntactical scan) ...
5 years, 10 months ago (2015-02-02 19:21:12 UTC) #25
dvh
On 2015/02/02 19:21:12, groby wrote: > LGTM w/ tiny nit > > (Caveat - I'm ...
5 years, 10 months ago (2015-02-02 19:23:30 UTC) #26
groby-ooo-7-16
Sorry, I meant once we move to a 10.10 minimum SDK. Yes, I know that ...
5 years, 10 months ago (2015-02-02 19:42:05 UTC) #27
armansito
Looks a lot better, lgtm with one nit. https://codereview.chromium.org/791763005/diff/240001/device/bluetooth/bluetooth_low_energy_device_mac.h File device/bluetooth/bluetooth_low_energy_device_mac.h (right): https://codereview.chromium.org/791763005/diff/240001/device/bluetooth/bluetooth_low_energy_device_mac.h#newcode28 device/bluetooth/bluetooth_low_energy_device_mac.h:28: virtual ...
5 years, 10 months ago (2015-02-05 19:54:12 UTC) #28
dvh
https://codereview.chromium.org/791763005/diff/200001/device/bluetooth/bluetooth_discovery_manager_mac.h File device/bluetooth/bluetooth_discovery_manager_mac.h (right): https://codereview.chromium.org/791763005/diff/200001/device/bluetooth/bluetooth_discovery_manager_mac.h#newcode22 device/bluetooth/bluetooth_discovery_manager_mac.h:22: virtual ~Observer() {} On 2015/01/31 02:22:38, Avi wrote: > ...
5 years, 10 months ago (2015-02-05 22:26:09 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/791763005/260001
5 years, 10 months ago (2015-02-05 22:27:05 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/31250)
5 years, 10 months ago (2015-02-05 22:55:49 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/791763005/280001
5 years, 10 months ago (2015-02-06 00:02:00 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/31302)
5 years, 10 months ago (2015-02-06 00:28:03 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/791763005/300001
5 years, 10 months ago (2015-02-06 18:58:07 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/791763005/320001
5 years, 10 months ago (2015-02-06 19:36:25 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/31643)
5 years, 10 months ago (2015-02-06 20:44:59 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/791763005/340001
5 years, 10 months ago (2015-02-07 06:22:06 UTC) #47
commit-bot: I haz the power
Committed patchset #13 (id:340001)
5 years, 10 months ago (2015-02-07 07:18:49 UTC) #48
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/42f79f8b08a99190627f3a67e86a378987104a4a Cr-Commit-Position: refs/heads/master@{#315190}
5 years, 10 months ago (2015-02-07 07:19:46 UTC) #49
ccameron
5 years, 10 months ago (2015-02-07 08:33:09 UTC) #50
Message was sent while issue was closed.
A revert of this CL (patchset #13 id:340001) has been created in
https://codereview.chromium.org/871843009/ by ccameron@chromium.org.

The reason for reverting is: Breaks compile:
http://build.chromium.org/p/chromium.mac/builders/Mac%20Builder/builds/17750

../../device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm:119:30:
error: class method '+UUIDWithString:' not found (return type defaults to 'id')
[-Werror,-Wobjc-method-access]
      CBUUID* uuid = [CBUUID UUIDWithString:uuidString];
                             ^~~~~~~~~~~~~~

../../device/bluetooth/bluetooth_low_energy_device_mac.mm:82:39: error: use of
undeclared identifier 'CBAdvertisementDataIsConnectable'
      [advertisementData objectForKey:CBAdvertisementDataIsConnectable];
                                      ^
../../device/bluetooth/bluetooth_low_energy_device_mac.mm:85:39: error: use of
undeclared identifier 'CBAdvertisementDataServiceDataKey'
      [advertisementData objectForKey:CBAdvertisementDataServiceDataKey];
                                      ^
2 errors generated..

Powered by Google App Engine
This is Rietveld 408576698