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

Issue 2376873002: arc: bluetooth: Use uuid 128 bit for service uuid (Closed)

Created:
4 years, 2 months ago by puthik_chromium
Modified:
4 years, 2 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, yusukes+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc: bluetooth: Use uuid 128 bit for service uuid We used 128 bit uuid for service uuid before. However this caused buffer overflow problem when encounter with multiple 16 bit uuid for this field as the length of advertising data would exceed the limit. We mitigated that by forcing the service uuid to be 16 bit. But this break the device that decide to advertised custom 128 bit uuids. This CL properly fixes the above problems by send 128 bit uuid to Android and let Android side deal with the overflow problem. BUG=653310, b:28670943 TEST=Android side can see 128 bit service uuid Committed: https://crrev.com/81711b78e78640b9ec45cd25cb8c0dbeb252030f Cr-Commit-Position: refs/heads/master@{#423641}

Patch Set 1 #

Total comments: 6

Patch Set 2 : fix lhchavez comment #

Patch Set 3 : Add more code comment #

Total comments: 7

Patch Set 4 : Always send 128 bit uuid to Android instead #

Patch Set 5 : fix cherry pick #

Patch Set 6 : fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -19 lines) Patch
M components/arc/bluetooth/arc_bluetooth_bridge.cc View 1 2 3 4 5 4 chunks +10 lines, -13 lines 0 comments Download
M components/arc/bluetooth/arc_bluetooth_bridge_unittest.cc View 1 2 3 1 chunk +3 lines, -6 lines 0 comments Download

Messages

Total messages: 31 (14 generated)
puthik_chromium
4 years, 2 months ago (2016-09-27 23:48:46 UTC) #2
Luis Héctor Chávez
https://codereview.chromium.org/2376873002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2376873002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode1867 components/arc/bluetooth/arc_bluetooth_bridge.cc:1867: // Note that we need to use UUID 16 ...
4 years, 2 months ago (2016-09-28 16:11:48 UTC) #3
puthik_chromium
https://codereview.chromium.org/2376873002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2376873002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode1891 components/arc/bluetooth/arc_bluetooth_bridge.cc:1891: i++; On 2016/09/28 16:11:48, Luis Héctor Chávez wrote: > ...
4 years, 2 months ago (2016-09-29 02:06:08 UTC) #4
Luis Héctor Chávez
On 2016/09/29 02:06:08, puthik_chromium wrote: > https://codereview.chromium.org/2376873002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc > File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): > > https://codereview.chromium.org/2376873002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode1891 > ...
4 years, 2 months ago (2016-09-29 15:21:00 UTC) #5
puthik_chromium
https://codereview.chromium.org/2376873002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2376873002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode1867 components/arc/bluetooth/arc_bluetooth_bridge.cc:1867: // Note that we need to use UUID 16 ...
4 years, 2 months ago (2016-09-29 21:06:50 UTC) #8
Luis Héctor Chávez
lgtm defer to rkc. https://codereview.chromium.org/2376873002/diff/40001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2376873002/diff/40001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode1915 components/arc/bluetooth/arc_bluetooth_bridge.cc:1915: // Android only support UUID ...
4 years, 2 months ago (2016-09-29 21:10:16 UTC) #9
Rahul Chaturvedi
https://codereview.chromium.org/2376873002/diff/40001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2376873002/diff/40001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode197 components/arc/bluetooth/arc_bluetooth_bridge.cc:197: bool isUuid16(const BluetoothUUID& uuid) { Can't we get this ...
4 years, 2 months ago (2016-09-29 22:10:47 UTC) #12
puthik_chromium
https://codereview.chromium.org/2376873002/diff/40001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2376873002/diff/40001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode197 components/arc/bluetooth/arc_bluetooth_bridge.cc:197: bool isUuid16(const BluetoothUUID& uuid) { On 2016/09/29 22:10:47, Rahul ...
4 years, 2 months ago (2016-09-29 22:39:25 UTC) #13
Rahul Chaturvedi
https://codereview.chromium.org/2376873002/diff/40001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2376873002/diff/40001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode1897 components/arc/bluetooth/arc_bluetooth_bridge.cc:1897: service_uuids->set_service_uuids_16(std::move(uuid16s)); On 2016/09/29 22:39:25, puthik_chromium wrote: > On 2016/09/29 ...
4 years, 2 months ago (2016-09-29 22:53:39 UTC) #14
puthik_chromium
On 2016/09/29 22:53:39, Rahul Chaturvedi wrote: > https://codereview.chromium.org/2376873002/diff/40001/components/arc/bluetooth/arc_bluetooth_bridge.cc > File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): > > https://codereview.chromium.org/2376873002/diff/40001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode1897 ...
4 years, 2 months ago (2016-09-30 00:29:21 UTC) #15
puthik_chromium
On 2016/09/30 00:29:21, puthik_chromium wrote: > On 2016/09/29 22:53:39, Rahul Chaturvedi wrote: > > > ...
4 years, 2 months ago (2016-10-01 00:48:54 UTC) #16
puthik_chromium
This is now send 128 bit uuids to Android and let Android worry about convert ...
4 years, 2 months ago (2016-10-05 18:18:57 UTC) #20
puthik_chromium
Note that Android side CLs are at http://ag/1512179 http://ag/1512180 http://ag/1512231
4 years, 2 months ago (2016-10-06 02:28:28 UTC) #23
Rahul Chaturvedi
lgtm
4 years, 2 months ago (2016-10-06 19:33:22 UTC) #24
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/2376873002/100001
4 years, 2 months ago (2016-10-06 19:37:52 UTC) #27
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-10-06 20:07:51 UTC) #29
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 20:10:32 UTC) #31
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/81711b78e78640b9ec45cd25cb8c0dbeb252030f
Cr-Commit-Position: refs/heads/master@{#423641}

Powered by Google App Engine
This is Rietveld 408576698