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

Issue 1116963002: Bluetooth low energy connection. (Closed)

Created:
5 years, 7 months ago by sacomoto
Modified:
5 years, 7 months ago
Reviewers:
Tim Song, msarda
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implementing a proximity_auth::Connection interface for Bluetooth Low Energy devices. The current version does not handle messages larger than a single characteristic size (around 150 bytes). Message receiving functionality is not implemented yet. BUG=485123 Committed: https://crrev.com/574c1637312ef98f8fa4bde909c1f040ddf33a4b Cr-Commit-Position: refs/heads/master@{#329837}

Patch Set 1 #

Patch Set 2 : Cleaning up #

Patch Set 3 : More cleaning up #

Patch Set 4 : Starting notification session #

Patch Set 5 : Removing debug messages #

Total comments: 60

Patch Set 6 : Addressing comments and handling control signals #

Patch Set 7 : Refactoring the connection callback #

Total comments: 25

Patch Set 8 : Addressing tengs comments #

Total comments: 5

Patch Set 9 : nits #

Patch Set 10 : Refactoring #

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+754 lines, -41 lines) Patch
M components/proximity_auth.gypi View 1 chunk +4 lines, -0 lines 0 comments Download
M components/proximity_auth/ble/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
A components/proximity_auth/ble/bluetooth_low_energy_connection.h View 1 2 3 4 5 6 7 8 9 1 chunk +209 lines, -0 lines 0 comments Download
A components/proximity_auth/ble/bluetooth_low_energy_connection.cc View 1 2 3 4 5 6 7 8 9 1 chunk +360 lines, -0 lines 0 comments Download
M components/proximity_auth/ble/bluetooth_low_energy_connection_finder.h View 1 2 3 4 5 6 7 4 chunks +34 lines, -10 lines 0 comments Download
M components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc View 1 2 3 4 5 6 7 8 chunks +57 lines, -24 lines 0 comments Download
A components/proximity_auth/ble/fake_wire_message.h View 1 2 3 4 5 6 7 8 9 1 chunk +32 lines, -0 lines 0 comments Download
A components/proximity_auth/ble/fake_wire_message.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +28 lines, -0 lines 0 comments Download
M components/proximity_auth/ble/proximity_auth_ble_system.h View 3 chunks +5 lines, -2 lines 0 comments Download
M components/proximity_auth/ble/proximity_auth_ble_system.cc View 1 2 3 4 5 5 chunks +15 lines, -5 lines 0 comments Download
M components/proximity_auth/connection.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (6 generated)
sacomoto
PTAL.
5 years, 7 months ago (2015-05-04 16:46:53 UTC) #2
msarda
https://codereview.chromium.org/1116963002/diff/80001/components/proximity_auth/ble/bluetooth_low_energy_connection.cc File components/proximity_auth/ble/bluetooth_low_energy_connection.cc (right): https://codereview.chromium.org/1116963002/diff/80001/components/proximity_auth/ble/bluetooth_low_energy_connection.cc#newcode41 components/proximity_auth/ble/bluetooth_low_energy_connection.cc:41: if (connection_) { Can |connection_| be null? If not, ...
5 years, 7 months ago (2015-05-05 11:56:15 UTC) #3
sacomoto
https://codereview.chromium.org/1116963002/diff/80001/components/proximity_auth/ble/bluetooth_low_energy_connection.cc File components/proximity_auth/ble/bluetooth_low_energy_connection.cc (right): https://codereview.chromium.org/1116963002/diff/80001/components/proximity_auth/ble/bluetooth_low_energy_connection.cc#newcode41 components/proximity_auth/ble/bluetooth_low_energy_connection.cc:41: if (connection_) { On 2015/05/05 11:56:13, msarda wrote: > ...
5 years, 7 months ago (2015-05-06 13:47:59 UTC) #4
sacomoto
Hi Tim, I need an owners review for proximity_auth/connection.h and proximity_auth.gypi. Mihai already did a ...
5 years, 7 months ago (2015-05-06 16:42:46 UTC) #6
Tim Song
https://codereview.chromium.org/1116963002/diff/120001/components/proximity_auth/ble/bluetooth_low_energy_connection.cc File components/proximity_auth/ble/bluetooth_low_energy_connection.cc (right): https://codereview.chromium.org/1116963002/diff/120001/components/proximity_auth/ble/bluetooth_low_energy_connection.cc#newcode51 components/proximity_auth/ble/bluetooth_low_energy_connection.cc:51: adapter_->AddObserver(this); Are all services going to be discovered as ...
5 years, 7 months ago (2015-05-11 08:02:40 UTC) #7
Tim Song
I don't see proximity_auth/connection.h. Did you forget to add it or did you not need ...
5 years, 7 months ago (2015-05-11 08:03:18 UTC) #8
sacomoto
On 2015/05/11 08:03:18, Tim Song wrote: > I don't see proximity_auth/connection.h. > > Did you ...
5 years, 7 months ago (2015-05-11 12:02:14 UTC) #9
sacomoto
PTAL. https://codereview.chromium.org/1116963002/diff/120001/components/proximity_auth/ble/bluetooth_low_energy_connection.cc File components/proximity_auth/ble/bluetooth_low_energy_connection.cc (right): https://codereview.chromium.org/1116963002/diff/120001/components/proximity_auth/ble/bluetooth_low_energy_connection.cc#newcode51 components/proximity_auth/ble/bluetooth_low_energy_connection.cc:51: adapter_->AddObserver(this); On 2015/05/11 08:02:39, Tim Song wrote: > ...
5 years, 7 months ago (2015-05-11 12:04:04 UTC) #10
Tim Song
https://codereview.chromium.org/1116963002/diff/120001/components/proximity_auth/ble/bluetooth_low_energy_connection.cc File components/proximity_auth/ble/bluetooth_low_energy_connection.cc (right): https://codereview.chromium.org/1116963002/diff/120001/components/proximity_auth/ble/bluetooth_low_energy_connection.cc#newcode141 components/proximity_auth/ble/bluetooth_low_energy_connection.cc:141: HandleCharacteristicUpdate(characteristic); On 2015/05/11 12:04:04, sacomoto wrote: > On 2015/05/11 ...
5 years, 7 months ago (2015-05-12 03:02:47 UTC) #11
sacomoto
https://codereview.chromium.org/1116963002/diff/120001/components/proximity_auth/ble/bluetooth_low_energy_connection.cc File components/proximity_auth/ble/bluetooth_low_energy_connection.cc (right): https://codereview.chromium.org/1116963002/diff/120001/components/proximity_auth/ble/bluetooth_low_energy_connection.cc#newcode141 components/proximity_auth/ble/bluetooth_low_energy_connection.cc:141: HandleCharacteristicUpdate(characteristic); On 2015/05/12 03:02:46, Tim Song wrote: > On ...
5 years, 7 months ago (2015-05-12 07:23:20 UTC) #12
sacomoto
On 2015/05/12 07:23:20, sacomoto wrote: > https://codereview.chromium.org/1116963002/diff/120001/components/proximity_auth/ble/bluetooth_low_energy_connection.cc > File components/proximity_auth/ble/bluetooth_low_energy_connection.cc (right): > > https://codereview.chromium.org/1116963002/diff/120001/components/proximity_auth/ble/bluetooth_low_energy_connection.cc#newcode141 > ...
5 years, 7 months ago (2015-05-12 22:36:56 UTC) #13
Tim Song
https://codereview.chromium.org/1116963002/diff/120001/components/proximity_auth/ble/bluetooth_low_energy_connection.cc File components/proximity_auth/ble/bluetooth_low_energy_connection.cc (right): https://codereview.chromium.org/1116963002/diff/120001/components/proximity_auth/ble/bluetooth_low_energy_connection.cc#newcode141 components/proximity_auth/ble/bluetooth_low_energy_connection.cc:141: HandleCharacteristicUpdate(characteristic); On 2015/05/12 07:23:19, sacomoto wrote: > On 2015/05/12 ...
5 years, 7 months ago (2015-05-13 02:36:56 UTC) #14
sacomoto
Sorry, I messed up with my git branches here. I had done both modifications, but ...
5 years, 7 months ago (2015-05-13 09:32:50 UTC) #15
Tim Song
LGTM. Thank you, Gustavo!
5 years, 7 months ago (2015-05-13 21:34:13 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1116963002/180001
5 years, 7 months ago (2015-05-14 10:40:08 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/63580)
5 years, 7 months ago (2015-05-14 10:45:48 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1116963002/200001
5 years, 7 months ago (2015-05-14 11:45:21 UTC) #23
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 7 months ago (2015-05-14 12:41:35 UTC) #24
commit-bot: I haz the power
5 years, 7 months ago (2015-05-14 12:42:45 UTC) #25
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/574c1637312ef98f8fa4bde909c1f040ddf33a4b
Cr-Commit-Position: refs/heads/master@{#329837}

Powered by Google App Engine
This is Rietveld 408576698