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

Issue 1583333003: bluetooth: Invalidate connection objects if a connection fails and add histograms (Closed)

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

Description

bluetooth: Invalidate connection objects if a connection fails and add histograms DidFailToConnectGatt is sometimes called when there are valid Connection objects so we need to invalidate them. Also adds histograms to understand what types of error can we expect in android. BUG=577741 Committed: https://crrev.com/41ec82434c76605df09935ebb1ed97f551d764c4 Cr-Commit-Position: refs/heads/master@{#370322}

Patch Set 1 #

Patch Set 2 : Clean up #

Total comments: 20

Patch Set 3 : Address scheib's comments #

Total comments: 11

Patch Set 4 : Address scheib's comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -76 lines) Patch
M device/bluetooth/bluetooth_device.cc View 1 2 2 chunks +6 lines, -7 lines 0 comments Download
M device/bluetooth/bluetooth_device_android.cc View 1 2 3 chunks +26 lines, -26 lines 0 comments Download
M device/bluetooth/bluetooth_device_unittest.cc View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M device/bluetooth/test/bluetooth_test_android.cc View 1 2 2 chunks +6 lines, -42 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 2 chunks +118 lines, -0 lines 2 comments Download

Messages

Total messages: 22 (7 generated)
ortuno
scheib: PTAL
4 years, 11 months ago (2016-01-14 21:55:41 UTC) #2
scheib
https://codereview.chromium.org/1583333003/diff/20001/device/bluetooth/bluetooth_device.cc File device/bluetooth/bluetooth_device.cc (right): https://codereview.chromium.org/1583333003/diff/20001/device/bluetooth/bluetooth_device.cc#newcode305 device/bluetooth/bluetooth_device.cc:305: for (BluetoothGattConnection* connection : gatt_connections_) { DCHECK this instead. ...
4 years, 11 months ago (2016-01-15 01:39:45 UTC) #3
ortuno
https://codereview.chromium.org/1583333003/diff/20001/device/bluetooth/bluetooth_device.cc File device/bluetooth/bluetooth_device.cc (right): https://codereview.chromium.org/1583333003/diff/20001/device/bluetooth/bluetooth_device.cc#newcode305 device/bluetooth/bluetooth_device.cc:305: for (BluetoothGattConnection* connection : gatt_connections_) { On 2016/01/15 at ...
4 years, 11 months ago (2016-01-15 21:34:42 UTC) #5
scheib
https://codereview.chromium.org/1583333003/diff/60001/device/bluetooth/bluetooth_device_android.cc File device/bluetooth/bluetooth_device_android.cc (right): https://codereview.chromium.org/1583333003/diff/60001/device/bluetooth/bluetooth_device_android.cc#newcode234 device/bluetooth/bluetooth_device_android.cc:234: DidFailToConnectGatt(ERROR_FAILED); Add a LOG for now to help us ...
4 years, 11 months ago (2016-01-16 23:59:52 UTC) #6
ortuno
https://codereview.chromium.org/1583333003/diff/60001/device/bluetooth/bluetooth_device_android.cc File device/bluetooth/bluetooth_device_android.cc (right): https://codereview.chromium.org/1583333003/diff/60001/device/bluetooth/bluetooth_device_android.cc#newcode234 device/bluetooth/bluetooth_device_android.cc:234: DidFailToConnectGatt(ERROR_FAILED); On 2016/01/16 at 23:59:52, scheib wrote: > Add ...
4 years, 11 months ago (2016-01-19 20:40:09 UTC) #7
scheib
LGTM https://codereview.chromium.org/1583333003/diff/60001/device/bluetooth/bluetooth_device_android.cc File device/bluetooth/bluetooth_device_android.cc (right): https://codereview.chromium.org/1583333003/diff/60001/device/bluetooth/bluetooth_device_android.cc#newcode234 device/bluetooth/bluetooth_device_android.cc:234: DidFailToConnectGatt(ERROR_FAILED); On 2016/01/19 20:40:08, ortuno wrote: > On ...
4 years, 11 months ago (2016-01-19 20:58:23 UTC) #8
ortuno
isherman: PTAL at histograms.xml
4 years, 11 months ago (2016-01-19 21:00:05 UTC) #10
Ilya Sherman
https://codereview.chromium.org/1583333003/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1583333003/diff/80001/tools/metrics/histograms/histograms.xml#newcode3175 tools/metrics/histograms/histograms.xml:3175: + enum="AndroidGATTConnectionErrorCodes"> What codes might be logged in this ...
4 years, 11 months ago (2016-01-20 00:35:44 UTC) #11
scheib
https://codereview.chromium.org/1583333003/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1583333003/diff/80001/tools/metrics/histograms/histograms.xml#newcode3175 tools/metrics/histograms/histograms.xml:3175: + enum="AndroidGATTConnectionErrorCodes"> On 2016/01/20 00:35:43, Ilya Sherman wrote: > ...
4 years, 11 months ago (2016-01-20 02:21:19 UTC) #12
Ilya Sherman
Okay, in that case, LGTM.
4 years, 11 months ago (2016-01-20 02:48:02 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1583333003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1583333003/80001
4 years, 11 months ago (2016-01-20 02:54:18 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/81624) linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 11 months ago (2016-01-20 03:11:01 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1583333003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1583333003/80001
4 years, 11 months ago (2016-01-20 04:46:47 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 11 months ago (2016-01-20 05:21:04 UTC) #20
commit-bot: I haz the power
4 years, 11 months ago (2016-01-20 05:22:01 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/41ec82434c76605df09935ebb1ed97f551d764c4
Cr-Commit-Position: refs/heads/master@{#370322}

Powered by Google App Engine
This is Rietveld 408576698