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

Issue 1228863002: Runtime checks so that CoreBluetooth only used on >= 10.10 (Closed)

Created:
5 years, 5 months ago by krstnmnlsn
Modified:
5 years, 5 months ago
Reviewers:
scheib, armansito
CC:
chromium-reviews, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@timeinfo
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added runtime checks to BluetoothLowEnergyDeviceMac and BluetoothDiscoveryManagerMac so that CoreBluetooth, particularly the class CBCentralManager, is only used if on OS X 10.10 or later. This is done to address crbug.com/506287 as well as a previous issue where CBCentralManager caused a crash on the mac_chromium_rel_ng trybot (running 10.9.5). BUG=506287 Committed: https://crrev.com/b53d5d2078793f80b78ee4b6229c22fae731add1 Cr-Commit-Position: refs/heads/master@{#338908}

Patch Set 1 : #

Patch Set 2 : adding comment #

Patch Set 3 : 'if' -> 'CHECK' on the LE discovery manager #

Patch Set 4 : not compiling #

Total comments: 6

Patch Set 5 : Scheib's comments #

Patch Set 6 : killing a bracket... #

Total comments: 2

Patch Set 7 : Scheib comments #2 #

Total comments: 4

Patch Set 8 : CHECK->DCHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -93 lines) Patch
M device/bluetooth/bluetooth_adapter_mac.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_mac.mm View 1 2 3 4 5 6 chunks +19 lines, -6 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_mac_unittest.mm View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_device_mac.mm View 1 2 3 4 5 6 7 3 chunks +11 lines, -51 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_discovery_manager_mac.h View 1 2 3 4 1 chunk +0 lines, -7 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm View 1 2 3 4 5 6 7 4 chunks +13 lines, -26 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 37 (21 generated)
krstnmnlsn
Added checks, and also deleted some code that the checks make extraneous / dead.
5 years, 5 months ago (2015-07-09 01:14:29 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1228863002/40001
5 years, 5 months ago (2015-07-09 01:27:48 UTC) #5
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
5 years, 5 months ago (2015-07-09 01:27:51 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1228863002/60001
5 years, 5 months ago (2015-07-09 03:27:21 UTC) #9
commit-bot: I haz the power
Dry run: 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/85457)
5 years, 5 months ago (2015-07-09 08:40:00 UTC) #11
scheib
https://codereview.chromium.org/1228863002/diff/80001/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://codereview.chromium.org/1228863002/diff/80001/device/bluetooth/bluetooth_adapter_mac.mm#newcode120 device/bluetooth/bluetooth_adapter_mac.mm:120: is_discovering || low_energy_discovery_manager_->IsDiscovering(); In many of these checks, perhaps ...
5 years, 5 months ago (2015-07-09 19:51:23 UTC) #12
krstnmnlsn
Updated to address comments and to compile on good old OS X 10.6... https://codereview.chromium.org/1228863002/diff/80001/device/bluetooth/bluetooth_adapter_mac.mm File ...
5 years, 5 months ago (2015-07-10 17:17:47 UTC) #22
scheib
LGTM with: https://codereview.chromium.org/1228863002/diff/290001/device/bluetooth/bluetooth_low_energy_device_mac.mm File device/bluetooth/bluetooth_low_energy_device_mac.mm (right): https://codereview.chromium.org/1228863002/diff/290001/device/bluetooth/bluetooth_low_energy_device_mac.mm#newcode34 device/bluetooth/bluetooth_low_energy_device_mac.mm:34: // For stability we only use CoreBluetooth ...
5 years, 5 months ago (2015-07-10 17:48:05 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1228863002/310001
5 years, 5 months ago (2015-07-10 18:04:46 UTC) #26
krstnmnlsn
Thanks Scheib. Hey Arman, here's a patch to address crbug.com/506287 by disabling our LE mac ...
5 years, 5 months ago (2015-07-10 18:08:33 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-10 19:00:57 UTC) #30
armansito
lgtm with nits https://codereview.chromium.org/1228863002/diff/310001/device/bluetooth/bluetooth_adapter_mac_unittest.mm File device/bluetooth/bluetooth_adapter_mac_unittest.mm (left): https://codereview.chromium.org/1228863002/diff/310001/device/bluetooth/bluetooth_adapter_mac_unittest.mm#oldcode33 device/bluetooth/bluetooth_adapter_mac_unittest.mm:33: mock_central_manager_ = [[MockCentralManager alloc] init]; This ...
5 years, 5 months ago (2015-07-15 18:04:59 UTC) #31
krstnmnlsn
Thanks Arman! https://codereview.chromium.org/1228863002/diff/310001/device/bluetooth/bluetooth_adapter_mac_unittest.mm File device/bluetooth/bluetooth_adapter_mac_unittest.mm (left): https://codereview.chromium.org/1228863002/diff/310001/device/bluetooth/bluetooth_adapter_mac_unittest.mm#oldcode33 device/bluetooth/bluetooth_adapter_mac_unittest.mm:33: mock_central_manager_ = [[MockCentralManager alloc] init]; On 2015/07/15 ...
5 years, 5 months ago (2015-07-15 19:36:09 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1228863002/330001
5 years, 5 months ago (2015-07-15 19:40:44 UTC) #35
commit-bot: I haz the power
Committed patchset #8 (id:330001)
5 years, 5 months ago (2015-07-15 20:42:53 UTC) #36
commit-bot: I haz the power
5 years, 5 months ago (2015-07-15 20:44:07 UTC) #37
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/b53d5d2078793f80b78ee4b6229c22fae731add1
Cr-Commit-Position: refs/heads/master@{#338908}

Powered by Google App Engine
This is Rietveld 408576698