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

Issue 2204263003: arc: bluetooth: Use UUID 16 bits in advertising data (Closed)

Created:
4 years, 4 months ago by puthik_chromium
Modified:
4 years, 4 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), elijahtaylor+arcwatch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, ortuno, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yusukes+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc: bluetooth: Use UUID 16 bits in advertising data For device advertising data received from low energy scan, Android framework supports UUID 128 bits in services data field. But, Android Bluetooth package supports only UUID 16 bits. This patch makes Chrome send UUID 16 bits to Android instead of UUID 128 bits. BUG=636478 TEST=Build Committed: https://crrev.com/31fcf11302a5dc9670458fe666f86c086191089d Cr-Commit-Position: refs/heads/master@{#412417}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix #1 comment #

Patch Set 3 : Add test + rebase to crrev.com/2244703005 #

Total comments: 2

Patch Set 4 : snprintf to base::StringPrintf #

Total comments: 4

Patch Set 5 : Add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -12 lines) Patch
M components/arc/bluetooth/arc_bluetooth_bridge.cc View 1 2 3 4 4 chunks +16 lines, -7 lines 0 comments Download
M components/arc/bluetooth/arc_bluetooth_bridge_unittest.cc View 1 2 3 2 chunks +8 lines, -5 lines 0 comments Download
M components/arc/common/bluetooth.mojom View 1 2 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (16 generated)
puthik_chromium
4 years, 4 months ago (2016-08-04 17:58:53 UTC) #7
rkc
Can we add a test for this? https://codereview.chromium.org/2204263003/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2204263003/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode176 components/arc/bluetooth/arc_bluetooth_bridge.cc:176: uint16_t GetUuid16(const ...
4 years, 4 months ago (2016-08-04 20:01:57 UTC) #8
Luis Héctor Chávez
+1 on the test, which would have caught the prepended zeroes. https://codereview.chromium.org/2204263003/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): ...
4 years, 4 months ago (2016-08-08 14:41:37 UTC) #9
puthik_chromium
Look like this does not related to the ArrayIndexOutOfBound error I see before. That is ...
4 years, 4 months ago (2016-08-10 19:07:27 UTC) #11
rkc
We definitely have the service data field in BluetoothAdvertisement and we do pass it all ...
4 years, 4 months ago (2016-08-10 19:30:41 UTC) #12
puthik_chromium
On 2016/08/10 19:30:41, rkc wrote: > We definitely have the service data field in BluetoothAdvertisement ...
4 years, 4 months ago (2016-08-10 19:41:12 UTC) #13
rkc
On 2016/08/10 19:41:12, puthik_chromium wrote: > On 2016/08/10 19:30:41, rkc wrote: > > We definitely ...
4 years, 4 months ago (2016-08-10 19:49:08 UTC) #14
Luis Héctor Chávez
On 2016/08/08 14:41:37, Luis Héctor Chávez wrote: > +1 on the test, which would have ...
4 years, 4 months ago (2016-08-15 15:30:20 UTC) #15
puthik_chromium
On 2016/08/15 15:30:20, Luis Héctor Chávez wrote: > On 2016/08/08 14:41:37, Luis Héctor Chávez wrote: ...
4 years, 4 months ago (2016-08-15 21:37:26 UTC) #16
puthik_chromium
cc: ortuno Just fyi since rkc is already review this cl.
4 years, 4 months ago (2016-08-15 21:39:12 UTC) #19
rkc
bt usage lgtm
4 years, 4 months ago (2016-08-15 22:41:32 UTC) #22
Luis Héctor Chávez
lgtm with one nit https://codereview.chromium.org/2204263003/diff/40001/components/arc/bluetooth/arc_bluetooth_bridge_unittest.cc File components/arc/bluetooth/arc_bluetooth_bridge_unittest.cc (right): https://codereview.chromium.org/2204263003/diff/40001/components/arc/bluetooth/arc_bluetooth_bridge_unittest.cc#newcode148 components/arc/bluetooth/arc_bluetooth_bridge_unittest.cc:148: snprintf(uuid16_str, sizeof(uuid16_str), "%04x", nit: prefer ...
4 years, 4 months ago (2016-08-15 22:47:13 UTC) #23
puthik_chromium
+rickyz for security https://codereview.chromium.org/2204263003/diff/40001/components/arc/bluetooth/arc_bluetooth_bridge_unittest.cc File components/arc/bluetooth/arc_bluetooth_bridge_unittest.cc (right): https://codereview.chromium.org/2204263003/diff/40001/components/arc/bluetooth/arc_bluetooth_bridge_unittest.cc#newcode148 components/arc/bluetooth/arc_bluetooth_bridge_unittest.cc:148: snprintf(uuid16_str, sizeof(uuid16_str), "%04x", On 2016/08/15 22:47:13, ...
4 years, 4 months ago (2016-08-15 23:19:20 UTC) #25
rickyz (no longer on Chrome)
lgtm https://codereview.chromium.org/2204263003/diff/60001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2204263003/diff/60001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode176 components/arc/bluetooth/arc_bluetooth_bridge.cc:176: uint16_t GetUUID16(const BluetoothUUID& uuid) { Let's add a ...
4 years, 4 months ago (2016-08-17 00:36:00 UTC) #26
puthik_chromium
https://codereview.chromium.org/2204263003/diff/60001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2204263003/diff/60001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode176 components/arc/bluetooth/arc_bluetooth_bridge.cc:176: uint16_t GetUUID16(const BluetoothUUID& uuid) { On 2016/08/17 00:35:59, rickyz ...
4 years, 4 months ago (2016-08-17 00:45:50 UTC) #27
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/2204263003/80001
4 years, 4 months ago (2016-08-17 00:46:15 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-17 01:44:45 UTC) #32
commit-bot: I haz the power
4 years, 4 months ago (2016-08-17 01:46:01 UTC) #34
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/31fcf11302a5dc9670458fe666f86c086191089d
Cr-Commit-Position: refs/heads/master@{#412417}

Powered by Google App Engine
This is Rietveld 408576698