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

Issue 1172853004: Chromium side of RequestDeviceOptions implementation. (Closed)

Created:
5 years, 6 months ago by Jeffrey Yasskin
Modified:
5 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@lkcr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Chromium side of RequestDeviceOptions implementation. The Chrome Implementation Notes refer to this patch: https://github.com/WebBluetoothChrome/web-bluetooth/pull/10 This is the second of three patches to implement RequestDeviceOptions: [1] https://crrev.com/1182973002 (Main Blink implementation) [2] This patch. [3] https://crrev.com/1174843002 (Blink tests) BUG=440594 Committed: https://crrev.com/3821e851e5d9496fa2a151d0e7707b0575e140d3 Cr-Commit-Position: refs/heads/master@{#336039}

Patch Set 1 #

Patch Set 2 : Add a unit test #

Patch Set 3 : Switch to a layout test for the new requestDevice behavior #

Patch Set 4 : Sync & tweak #

Total comments: 17

Patch Set 5 : Sync past the error-messages patch #

Patch Set 6 : Be more paranoid about BluetoothUUID IPCs #

Total comments: 1

Patch Set 7 : Fix Vince's comments #

Patch Set 8 : Add some services to the multi-device adaptor to enable more interesting tests #

Total comments: 2

Patch Set 9 : Fix the fake adapter descriptions, including the returned device from the ScanFilterCheckingAdapter. #

Total comments: 7

Patch Set 10 : Document the purpose of ParamTraits<BluetoothUUID> #

Total comments: 2

Patch Set 11 : Add an end-namespace comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+377 lines, -55 lines) Patch
M content/browser/bluetooth/bluetooth_dispatcher_host.h View 1 2 3 4 chunks +18 lines, -2 lines 0 comments Download
M content/browser/bluetooth/bluetooth_dispatcher_host.cc View 1 2 3 4 5 6 6 chunks +90 lines, -26 lines 0 comments Download
A + content/child/bluetooth/DEPS View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M content/child/bluetooth/bluetooth_dispatcher.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/child/bluetooth/bluetooth_dispatcher.cc View 1 2 3 4 3 chunks +24 lines, -1 line 0 comments Download
M content/child/bluetooth/web_bluetooth_impl.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/child/bluetooth/web_bluetooth_impl.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/common/bluetooth/bluetooth_messages.h View 1 2 3 4 3 chunks +9 lines, -2 lines 0 comments Download
A content/common/bluetooth/bluetooth_scan_filter.h View 1 chunk +28 lines, -0 lines 0 comments Download
A content/common/bluetooth/bluetooth_scan_filter.cc View 1 chunk +20 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 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 3 chunks +34 lines, -6 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc View 1 2 3 4 5 6 7 8 chunks +103 lines, -17 lines 0 comments Download
M device/bluetooth/bluetooth_uuid.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +20 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_uuid.cc View 1 2 3 4 5 6 7 8 9 2 chunks +25 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (8 generated)
Jeffrey Yasskin
Vince || Gio for *bluetooth*; Arman for device/bluetooth and the new DEPS on it.
5 years, 6 months ago (2015-06-15 21:12:10 UTC) #3
ortuno
LGTM. There are going to be a couple of merge conflicts with the error messages ...
5 years, 6 months ago (2015-06-15 22:49:27 UTC) #4
scheib
https://codereview.chromium.org/1172853004/diff/80001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1172853004/diff/80001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode347 content/browser/bluetooth/bluetooth_dispatcher_host.cc:347: // https://webbluetoothcg.github.io/web-bluetooth/#dfn-matches-a-filter Please update https://github.com/WebBluetoothChrome/web-bluetooth noting this cross reference ...
5 years, 6 months ago (2015-06-15 23:47:21 UTC) #6
Jeffrey Yasskin
Tom, please review content/common/bluetooth/bluetooth_messages.h and the new ParamTraits in bluetooth_uuid.cc. https://codereview.chromium.org/1172853004/diff/80001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1172853004/diff/80001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode100 ...
5 years, 6 months ago (2015-06-15 23:48:23 UTC) #8
Jeffrey Yasskin
https://codereview.chromium.org/1172853004/diff/80001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1172853004/diff/80001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode100 content/browser/bluetooth/bluetooth_dispatcher_host.cc:100: static scoped_ptr<device::BluetoothDiscoveryFilter> ComputeScanFilter( On 2015/06/15 23:48:22, Jeffrey Yasskin wrote: ...
5 years, 6 months ago (2015-06-16 00:48:10 UTC) #9
scheib
LGTM https://codereview.chromium.org/1172853004/diff/180001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h File content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h (right): https://codereview.chromium.org/1172853004/diff/180001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h#newcode42 content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h:42: // - |GetDevices| returns an empty list of ...
5 years, 6 months ago (2015-06-16 03:12:07 UTC) #10
Jeffrey Yasskin
https://codereview.chromium.org/1172853004/diff/180001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h File content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h (right): https://codereview.chromium.org/1172853004/diff/180001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h#newcode42 content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h:42: // - |GetDevices| returns an empty list of devices. ...
5 years, 6 months ago (2015-06-16 19:11:40 UTC) #11
scheib
LGTM
5 years, 6 months ago (2015-06-16 19:44:00 UTC) #12
Tom Sepez
lgtm
5 years, 6 months ago (2015-06-16 19:48:18 UTC) #13
Jeffrey Yasskin
Hey Scott, Arman's OOO until Friday, so I wonder if you could look at the ...
5 years, 6 months ago (2015-06-17 00:15:32 UTC) #15
armansito
https://codereview.chromium.org/1172853004/diff/200001/device/bluetooth/bluetooth_uuid.cc File device/bluetooth/bluetooth_uuid.cc (right): https://codereview.chromium.org/1172853004/diff/200001/device/bluetooth/bluetooth_uuid.cc#newcode114 device/bluetooth/bluetooth_uuid.cc:114: return r->format() == device::BluetoothUUID::kFormat128Bit; I'm not fully understanding the ...
5 years, 6 months ago (2015-06-23 18:24:28 UTC) #16
scheib
https://codereview.chromium.org/1172853004/diff/200001/device/bluetooth/bluetooth_uuid.cc File device/bluetooth/bluetooth_uuid.cc (right): https://codereview.chromium.org/1172853004/diff/200001/device/bluetooth/bluetooth_uuid.cc#newcode114 device/bluetooth/bluetooth_uuid.cc:114: return r->format() == device::BluetoothUUID::kFormat128Bit; On 2015/06/23 18:24:28, armansito wrote: ...
5 years, 6 months ago (2015-06-23 18:33:27 UTC) #17
Jeffrey Yasskin
https://codereview.chromium.org/1172853004/diff/200001/device/bluetooth/bluetooth_uuid.cc File device/bluetooth/bluetooth_uuid.cc (right): https://codereview.chromium.org/1172853004/diff/200001/device/bluetooth/bluetooth_uuid.cc#newcode114 device/bluetooth/bluetooth_uuid.cc:114: return r->format() == device::BluetoothUUID::kFormat128Bit; On 2015/06/23 18:33:27, scheib wrote: ...
5 years, 6 months ago (2015-06-24 21:04:26 UTC) #18
armansito
https://codereview.chromium.org/1172853004/diff/200001/device/bluetooth/bluetooth_uuid.cc File device/bluetooth/bluetooth_uuid.cc (right): https://codereview.chromium.org/1172853004/diff/200001/device/bluetooth/bluetooth_uuid.cc#newcode114 device/bluetooth/bluetooth_uuid.cc:114: return r->format() == device::BluetoothUUID::kFormat128Bit; On 2015/06/24 21:04:25, jyasskin - ...
5 years, 6 months ago (2015-06-24 21:26:43 UTC) #19
Jeffrey Yasskin
5 years, 6 months ago (2015-06-24 22:05:11 UTC) #21
Jeffrey Yasskin
https://codereview.chromium.org/1172853004/diff/220001/device/bluetooth/bluetooth_uuid.h File device/bluetooth/bluetooth_uuid.h (right): https://codereview.chromium.org/1172853004/diff/220001/device/bluetooth/bluetooth_uuid.h#newcode15 device/bluetooth/bluetooth_uuid.h:15: } On 2015/06/24 21:26:43, armansito wrote: > nit "} ...
5 years, 6 months ago (2015-06-24 22:05:33 UTC) #22
armansito
lgtm
5 years, 6 months ago (2015-06-24 22:41:45 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1172853004/240001
5 years, 6 months ago (2015-06-24 22:55:08 UTC) #26
commit-bot: I haz the power
Committed patchset #11 (id:240001)
5 years, 6 months ago (2015-06-24 23:54:03 UTC) #27
commit-bot: I haz the power
5 years, 6 months ago (2015-06-24 23:54:51 UTC) #28
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/3821e851e5d9496fa2a151d0e7707b0575e140d3
Cr-Commit-Position: refs/heads/master@{#336039}

Powered by Google App Engine
This is Rietveld 408576698