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

Issue 2276213002: bluetooth: Fix mac crash when logging is enabled (Closed)

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

Description

bluetooth: Fix mac crash when logging is enabled DidDisconnectPeripheral is not always called with an error, for example when we've initiated the disconnection. This could cause a crash when we try to log the error. BUG=625209 Committed: https://crrev.com/172be983dd03edd4e42b7f4d74d3db86fd178a5a Cr-Commit-Position: refs/heads/master@{#414456}

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -17 lines) Patch
M device/bluetooth/bluetooth_adapter_mac.mm View 2 chunks +14 lines, -11 lines 2 comments Download
M device/bluetooth/bluetooth_low_energy_device_mac.h View 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_low_energy_device_mac.mm View 2 chunks +10 lines, -5 lines 2 comments Download

Messages

Total messages: 16 (7 generated)
ortuno
jyasskin: PTAL. I know I have other pending CLs but since this fixes a crash ...
4 years, 3 months ago (2016-08-24 23:19:01 UTC) #4
Jeffrey Yasskin
lgtm https://codereview.chromium.org/2276213002/diff/1/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://codereview.chromium.org/2276213002/diff/1/device/bluetooth/bluetooth_adapter_mac.mm#newcode600 device/bluetooth/bluetooth_adapter_mac.mm:600: BluetoothDevice::ConnectErrorCode::ERROR_UNKNOWN; If this happens when we explicitly disconnected ...
4 years, 3 months ago (2016-08-24 23:28:13 UTC) #5
Jeffrey Yasskin
Oh, also, it'd be great to have tests for this fix. On Wed, Aug 24, ...
4 years, 3 months ago (2016-08-24 23:31:28 UTC) #6
ortuno
I'm not sure what the test would be since this only happens when logging is ...
4 years, 3 months ago (2016-08-24 23:34:32 UTC) #7
Jeffrey Yasskin
Cool, if there are existing tests that this fixes when logging is enabled, that's enough ...
4 years, 3 months ago (2016-08-24 23:37:49 UTC) #8
ortuno
Thanks! https://codereview.chromium.org/2276213002/diff/1/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://codereview.chromium.org/2276213002/diff/1/device/bluetooth/bluetooth_adapter_mac.mm#newcode600 device/bluetooth/bluetooth_adapter_mac.mm:600: BluetoothDevice::ConnectErrorCode::ERROR_UNKNOWN; On 2016/08/24 at 23:28:13, Jeffrey Yasskin wrote: ...
4 years, 3 months ago (2016-08-25 16:39:56 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2276213002/1
4 years, 3 months ago (2016-08-25 16:40:34 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-08-25 16:45:53 UTC) #14
commit-bot: I haz the power
4 years, 3 months ago (2016-08-25 16:47:54 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/172be983dd03edd4e42b7f4d74d3db86fd178a5a
Cr-Commit-Position: refs/heads/master@{#414456}

Powered by Google App Engine
This is Rietveld 408576698