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

Issue 1415533006: bluetooth: Implement requestDevice by name or name prefix (Closed)

Created:
5 years, 2 months ago by ortuno
Modified:
5 years, 1 month ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@bluetooth-characteristic-properties
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Implement requestDevice by name or name prefix Based on: https://github.com/WebBluetoothCG/web-bluetooth/pull/174 Implementation of requestDevice by name or namePrefix. BUG=546141 Committed: https://crrev.com/9c4494c0090cd89597c9219a48673bf9ff8efc51 Cr-Commit-Position: refs/heads/master@{#357926}

Patch Set 1 #

Patch Set 2 : Tests #

Total comments: 16

Patch Set 3 : Address scheib's comments #

Total comments: 6

Patch Set 4 : Change names, added return #

Patch Set 5 : Merge with ToT #

Total comments: 11

Patch Set 6 : Actually merge with ToT #

Patch Set 7 : Address palmer's comments #

Patch Set 8 : Check name and namePrefix length #

Patch Set 9 : clean up #

Total comments: 1

Patch Set 10 : Merge with ToT and fix histograms conflict #

Unified diffs Side-by-side diffs Delta from patch set Stats (+550 lines, -45 lines) Patch
M content/browser/bad_message.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/bluetooth/bluetooth_dispatcher_host.cc View 1 2 3 4 5 6 7 3 chunks +52 lines, -9 lines 0 comments Download
M content/common/bluetooth/bluetooth_messages.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/bluetooth/bluetooth_scan_filter.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/common/bluetooth/bluetooth_scan_filter.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M content/renderer/bluetooth/bluetooth_dispatcher.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc View 1 2 3 4 5 6 7 2 chunks +12 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice.html View 1 chunk +0 lines, -12 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/requestDevice-canonicalize-filter.html View 1 2 3 4 5 6 7 1 chunk +224 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/requestDevice-matches-a-filter.html View 1 2 1 chunk +149 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp View 1 2 3 4 5 6 7 1 chunk +85 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothScanFilter.idl View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/bluetooth/WebRequestDeviceOptions.h View 1 chunk +2 lines, -4 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 48 (18 generated)
ortuno
scheib: PTAL
5 years, 2 months ago (2015-10-21 20:46:29 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415533006/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415533006/20001
5 years, 2 months ago (2015-10-21 20:48:42 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/123929)
5 years, 2 months ago (2015-10-21 22:49:48 UTC) #8
scheib
https://codereview.chromium.org/1415533006/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1415533006/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode54 content/browser/bluetooth/bluetooth_dispatcher_host.cc:54: DCHECK(!(filter.name.empty() && filter.namePrefix.empty() && Malformed data from a renderer ...
5 years, 2 months ago (2015-10-22 04:58:42 UTC) #9
ortuno
https://codereview.chromium.org/1415533006/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1415533006/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode54 content/browser/bluetooth/bluetooth_dispatcher_host.cc:54: DCHECK(!(filter.name.empty() && filter.namePrefix.empty() && On 2015/10/22 at 04:58:42, scheib ...
5 years, 2 months ago (2015-10-22 16:21:31 UTC) #10
scheib
https://codereview.chromium.org/1415533006/diff/20001/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp File third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp (right): https://codereview.chromium.org/1415533006/diff/20001/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp#newcode49 third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp:49: canonicalizedFilter.name = filter.name(); On 2015/10/22 16:21:31, ortuno wrote: > ...
5 years, 2 months ago (2015-10-22 18:35:52 UTC) #11
ortuno
https://codereview.chromium.org/1415533006/diff/40001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1415533006/diff/40001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode50 content/browser/bluetooth/bluetooth_dispatcher_host.cc:50: bool EmptyFilter(const content::BluetoothScanFilter& filter) { On 2015/10/22 at 18:35:52, ...
5 years, 2 months ago (2015-10-22 20:47:22 UTC) #12
scheib
LGTM
5 years, 2 months ago (2015-10-22 21:16:50 UTC) #13
ortuno
palmer: PTAL at content/common/bluetooth/. We are sending a string from javascript through IPC to the ...
5 years, 2 months ago (2015-10-22 21:23:59 UTC) #15
ortuno
palmer: ping?
5 years, 1 month ago (2015-10-26 22:24:58 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415533006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415533006/60001
5 years, 1 month ago (2015-10-27 20:35:55 UTC) #18
commit-bot: I haz the power
Dry run: 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/49524) mac_chromium_compile_dbg_ng on ...
5 years, 1 month ago (2015-10-27 20:48:53 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415533006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415533006/80001
5 years, 1 month ago (2015-10-27 20:56:00 UTC) #22
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/49512) linux_chromium_compile_dbg_32_ng on ...
5 years, 1 month ago (2015-10-27 21:12:05 UTC) #24
palmer
https://codereview.chromium.org/1415533006/diff/80001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1415533006/diff/80001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode64 content/browser/bluetooth/bluetooth_dispatcher_host.cc:64: return false; Nit: Maybe this is cleaner/more clear: return ...
5 years, 1 month ago (2015-10-27 21:43:18 UTC) #25
palmer
https://codereview.chromium.org/1415533006/diff/80001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1415533006/diff/80001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode482 content/browser/bluetooth/bluetooth_dispatcher_host.cc:482: VLOG(1) << "Name: " << filter.name; Also, do they ...
5 years, 1 month ago (2015-10-27 21:46:56 UTC) #26
ortuno
https://codereview.chromium.org/1415533006/diff/80001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1415533006/diff/80001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode64 content/browser/bluetooth/bluetooth_dispatcher_host.cc:64: return false; On 2015/10/27 at 21:43:18, palmer wrote: > ...
5 years, 1 month ago (2015-10-28 17:53:25 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415533006/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415533006/120001
5 years, 1 month ago (2015-10-30 05:29:44 UTC) #29
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/128078)
5 years, 1 month ago (2015-10-30 06:40:53 UTC) #31
Jeffrey Yasskin
https://codereview.chromium.org/1415533006/diff/80001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1415533006/diff/80001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode482 content/browser/bluetooth/bluetooth_dispatcher_host.cc:482: VLOG(1) << "Name: " << filter.name; On 2015/10/28 17:53:25, ...
5 years, 1 month ago (2015-10-30 22:04:44 UTC) #33
ortuno
https://codereview.chromium.org/1415533006/diff/80001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1415533006/diff/80001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode482 content/browser/bluetooth/bluetooth_dispatcher_host.cc:482: VLOG(1) << "Name: " << filter.name; On 2015/10/30 22:04:44, ...
5 years, 1 month ago (2015-10-30 22:36:02 UTC) #34
palmer
> Yup. It's 29 if you don't count the flags which are almost always there. ...
5 years, 1 month ago (2015-10-30 23:44:13 UTC) #35
ortuno
palmer: Check for length added. PTAL. nick: ptal at bad_messages.h isherman: ptal at histograms.xml
5 years, 1 month ago (2015-11-04 02:34:37 UTC) #38
ortuno
isherman: PTAL at histograms.xml
5 years, 1 month ago (2015-11-04 02:35:13 UTC) #40
ncarter (slow)
On 2015/11/04 02:35:13, ortuno wrote: > isherman: PTAL at histograms.xml bad_message rubber stamp lgtm
5 years, 1 month ago (2015-11-04 18:24:16 UTC) #41
palmer
LGTM with nit. https://codereview.chromium.org/1415533006/diff/180001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1415533006/diff/180001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode76 content/browser/bluetooth/bluetooth_dispatcher_host.cc:76: return false; Nit: This is indented ...
5 years, 1 month ago (2015-11-04 21:15:27 UTC) #42
Ilya Sherman
histograms.xml lgtm
5 years, 1 month ago (2015-11-04 23:06:53 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415533006/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415533006/200001
5 years, 1 month ago (2015-11-04 23:08:10 UTC) #46
commit-bot: I haz the power
Committed patchset #10 (id:200001)
5 years, 1 month ago (2015-11-04 23:19:47 UTC) #47
commit-bot: I haz the power
5 years, 1 month ago (2015-11-04 23:20:49 UTC) #48
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/9c4494c0090cd89597c9219a48673bf9ff8efc51
Cr-Commit-Position: refs/heads/master@{#357926}

Powered by Google App Engine
This is Rietveld 408576698