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

Issue 2615273002: Bump Bluetooth max filter name length from 29 bytes to 240 bytes (Closed)

Created:
3 years, 11 months ago by jeffcarp
Modified:
3 years, 11 months ago
Reviewers:
scheib
CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, haraken, jam, ortuno+watch_chromium.org, scheib+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Bump Bluetooth max filter name length from 29 bytes to 240 bytes A device can't advertise a name longer than 29 bytes, but it can acquire a name via gap.device_name that is longer than 29 bytes, limited by the maximum EIR packet size of 240 bytes. BUG=653718 Review-Url: https://codereview.chromium.org/2615273002 Cr-Commit-Position: refs/heads/master@{#444551} Committed: https://chromium.googlesource.com/chromium/src/+/97239d883153487960a88a907740755e5459b2a6

Patch Set 1 #

Patch Set 2 : Fix layout tests, begin to add new layout test #

Total comments: 5

Patch Set 3 : Formatting #

Patch Set 4 : Expand max length comments and add spec citation #

Total comments: 4

Patch Set 5 : Correct fake test value #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -28 lines) Patch
M content/browser/bluetooth/bluetooth_device_chooser_controller.cc View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/device-name-longer-than-29-bytes.html View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/max-length-for-name-in-adv-name.html View 1 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/max-length-for-name-in-adv-namePrefix.html View 1 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/unicode-max-length-for-device-name-name.html View 1 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/unicode-max-length-for-device-name-namePrefix.html View 1 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp View 1 2 3 1 chunk +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/testing/clusterfuzz/wbt_fakes.py View 1 4 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
jeffcarp
I've done everything except getting the newly added layout test working (testing names 29<x<240 bytes). ...
3 years, 11 months ago (2017-01-09 18:45:20 UTC) #2
scheib
Thanks! https://codereview.chromium.org/2615273002/diff/20001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc File content/browser/bluetooth/bluetooth_device_chooser_controller.cc (right): https://codereview.chromium.org/2615273002/diff/20001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc#newcode83 content/browser/bluetooth/bluetooth_device_chooser_controller.cc:83: constexpr size_t kMaxLengthForDeviceName = 240; On 2017/01/09 18:45:20, ...
3 years, 11 months ago (2017-01-09 19:26:50 UTC) #3
jeffcarp
https://codereview.chromium.org/2615273002/diff/60001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc File content/browser/bluetooth/bluetooth_device_chooser_controller.cc (right): https://codereview.chromium.org/2615273002/diff/60001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc#newcode85 content/browser/bluetooth/bluetooth_device_chooser_controller.cc:85: // to the max EIR packet size of 240 ...
3 years, 11 months ago (2017-01-11 01:47:27 UTC) #4
jeffcarp
On 2017/01/11 at 01:47:27, jeffcarp wrote: > https://codereview.chromium.org/2615273002/diff/60001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc > File content/browser/bluetooth/bluetooth_device_chooser_controller.cc (right): > > https://codereview.chromium.org/2615273002/diff/60001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc#newcode85 ...
3 years, 11 months ago (2017-01-18 19:37:31 UTC) #13
scheib
Rutabaga LGTM
3 years, 11 months ago (2017-01-18 21:31:43 UTC) #14
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/2615273002/80001
3 years, 11 months ago (2017-01-18 22:10:20 UTC) #16
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 23:54:56 UTC) #19
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/97239d883153487960a88a907740...

Powered by Google App Engine
This is Rietveld 408576698