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

Issue 1156573005: bluetooth: Browser-side implementation of getCharacteristic (Closed)

Created:
5 years, 6 months ago by ortuno
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@bluetooth-get-primary-service-initial
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Browser-side implementation of getCharacteristic This patch also adds the necessary mocks for LayoutTests in the following patch. Updates to the Chrome Implementation Notes corresponding to this patch: https://github.com/WebBluetoothChrome/web-bluetooth/pull/9 This is the second of a set of three patches to implement getCharacteristic: [1] http://crrev.com/1153343002 [2] This patch. [3] http://crrev.com/1146163005 BUG=483344 Committed: https://crrev.com/a90b6a258b57779ac848cbcef3be13d78a7922b0 Cr-Commit-Position: refs/heads/master@{#334036}

Patch Set 1 : Bluetooth getCharacteristic impl #

Patch Set 2 : Small fixes #

Total comments: 19

Patch Set 3 : Address jyasskin's comments #

Patch Set 4 : Add return to BadMessage #

Total comments: 2

Patch Set 5 : Use iterator #

Total comments: 17

Patch Set 6 : Address scheib's comments #

Patch Set 7 : Merged with TOT #

Total comments: 1

Patch Set 8 : Address scheib's and nick's comments #

Total comments: 13

Patch Set 9 : Address armansito's comments. #

Patch Set 10 : Fix histograms.xml and bad_messages.h merge conflict #

Unified diffs Side-by-side diffs Delta from patch set Stats (+298 lines, -18 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.h View 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/bluetooth/bluetooth_dispatcher_host.cc View 1 2 3 4 5 6 7 4 chunks +68 lines, -1 line 0 comments Download
M content/child/bluetooth/bluetooth_dispatcher.h View 4 chunks +16 lines, -0 lines 0 comments Download
M content/child/bluetooth/bluetooth_dispatcher.cc View 1 2 5 chunks +69 lines, -0 lines 0 comments Download
M content/child/bluetooth/web_bluetooth_impl.h View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M content/child/bluetooth/web_bluetooth_impl.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M content/common/bluetooth/bluetooth_messages.h View 1 2 2 chunks +19 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h View 1 2 3 4 5 3 chunks +16 lines, -2 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc View 1 2 3 4 5 5 chunks +42 lines, -9 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_adapter.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/test/mock_bluetooth_device.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -3 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_device.cc View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_gatt_service.h View 1 2 3 4 5 6 7 8 2 chunks +18 lines, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_gatt_service.cc View 1 chunk +14 lines, -0 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: 38 (12 generated)
ortuno
@jyasskin: PTAL
5 years, 6 months ago (2015-06-02 17:03:02 UTC) #5
Jeffrey Yasskin
https://codereview.chromium.org/1156573005/diff/80001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1156573005/diff/80001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode164 content/browser/bluetooth/bluetooth_dispatcher_host.cc:164: adapter_->GetDevice(service_to_device_[service_instance_id]); Generally avoid using operator[] on a map to ...
5 years, 6 months ago (2015-06-02 22:12:29 UTC) #7
Jeffrey Yasskin
https://codereview.chromium.org/1156573005/diff/80001/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/1156573005/diff/80001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h#newcode75 content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h:75: // - |GetGattServices| returns a list with two services ...
5 years, 6 months ago (2015-06-03 00:13:51 UTC) #8
ortuno
https://codereview.chromium.org/1156573005/diff/80001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1156573005/diff/80001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode164 content/browser/bluetooth/bluetooth_dispatcher_host.cc:164: adapter_->GetDevice(service_to_device_[service_instance_id]); On 2015/06/02 at 22:12:28, Jeffrey Yasskin wrote: > ...
5 years, 6 months ago (2015-06-03 20:27:23 UTC) #9
Jeffrey Yasskin
lgtm https://codereview.chromium.org/1156573005/diff/80001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc File content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc (right): https://codereview.chromium.org/1156573005/diff/80001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc#newcode215 content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc:215: .WillByDefault(::GetMockService(empty_device.get())); On 2015/06/03 20:27:23, ortuno wrote: > On ...
5 years, 6 months ago (2015-06-03 22:56:24 UTC) #10
ortuno
@jyasskin: Thanks! @scheib: PTAL https://codereview.chromium.org/1156573005/diff/120001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1156573005/diff/120001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode174 content/browser/bluetooth/bluetooth_dispatcher_host.cc:174: adapter_->GetDevice(service_to_device_[service_instance_id]); On 2015/06/03 at 22:56:24, ...
5 years, 6 months ago (2015-06-03 23:26:56 UTC) #13
scheib
https://codereview.chromium.org/1156573005/diff/140001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1156573005/diff/140001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode162 content/browser/bluetooth/bluetooth_dispatcher_host.cc:162: // There are no cases in which a normal ...
5 years, 6 months ago (2015-06-04 06:30:49 UTC) #14
ortuno
@scheib: Ready for review again. https://codereview.chromium.org/1156573005/diff/140001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1156573005/diff/140001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode162 content/browser/bluetooth/bluetooth_dispatcher_host.cc:162: // There are no ...
5 years, 6 months ago (2015-06-05 19:37:44 UTC) #15
ortuno
@nick: PTAL at bad_message.h
5 years, 6 months ago (2015-06-05 21:07:37 UTC) #17
ncarter (slow)
lgtm, thanks for using bad_message https://codereview.chromium.org/1156573005/diff/180001/content/browser/bad_message.h File content/browser/bad_message.h (right): https://codereview.chromium.org/1156573005/diff/180001/content/browser/bad_message.h#newcode104 content/browser/bad_message.h:104: BDH_INVALID_SERVICE_ID = 78, Please ...
5 years, 6 months ago (2015-06-06 18:19:46 UTC) #18
scheib
LGTM
5 years, 6 months ago (2015-06-08 16:54:41 UTC) #19
scheib
https://codereview.chromium.org/1156573005/diff/140001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1156573005/diff/140001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode313 content/browser/bluetooth/bluetooth_dispatcher_host.cc:313: service_to_device_.insert( On 2015/06/05 19:37:44, ortuno wrote: > On 2015/06/04 ...
5 years, 6 months ago (2015-06-08 17:02:07 UTC) #20
ortuno
@armansito: PTAL at device/bluetooth/test @tsepez: PTAL at bluetooth_messages
5 years, 6 months ago (2015-06-08 17:41:34 UTC) #22
Tom Sepez
Messages LGTM.
5 years, 6 months ago (2015-06-08 17:59:04 UTC) #23
ortuno
@asvitkine: PTAL at histogram.xml
5 years, 6 months ago (2015-06-08 18:01:41 UTC) #25
Alexei Svitkine (slow)
lgtm
5 years, 6 months ago (2015-06-08 21:15:33 UTC) #26
armansito
https://codereview.chromium.org/1156573005/diff/200001/device/bluetooth/test/mock_bluetooth_adapter.h File device/bluetooth/test/mock_bluetooth_adapter.h (right): https://codereview.chromium.org/1156573005/diff/200001/device/bluetooth/test/mock_bluetooth_adapter.h#newcode105 device/bluetooth/test/mock_bluetooth_adapter.h:105: // This methods takes ownership of the MockBluetoothDevice. This ...
5 years, 6 months ago (2015-06-09 19:23:49 UTC) #27
ortuno
@armansito: Thanks! https://codereview.chromium.org/1156573005/diff/200001/device/bluetooth/test/mock_bluetooth_adapter.h File device/bluetooth/test/mock_bluetooth_adapter.h (right): https://codereview.chromium.org/1156573005/diff/200001/device/bluetooth/test/mock_bluetooth_adapter.h#newcode105 device/bluetooth/test/mock_bluetooth_adapter.h:105: // This methods takes ownership of the ...
5 years, 6 months ago (2015-06-09 20:46:43 UTC) #28
armansito
https://codereview.chromium.org/1156573005/diff/200001/device/bluetooth/test/mock_bluetooth_gatt_service.cc File device/bluetooth/test/mock_bluetooth_gatt_service.cc (right): https://codereview.chromium.org/1156573005/diff/200001/device/bluetooth/test/mock_bluetooth_gatt_service.cc#newcode45 device/bluetooth/test/mock_bluetooth_gatt_service.cc:45: characteristics.push_back(characteristic); On 2015/06/09 20:46:42, ortuno wrote: > On 2015/06/09 ...
5 years, 6 months ago (2015-06-10 02:40:47 UTC) #29
ortuno
On 2015/06/10 at 02:40:47, armansito wrote: > https://codereview.chromium.org/1156573005/diff/200001/device/bluetooth/test/mock_bluetooth_gatt_service.cc > File device/bluetooth/test/mock_bluetooth_gatt_service.cc (right): > > https://codereview.chromium.org/1156573005/diff/200001/device/bluetooth/test/mock_bluetooth_gatt_service.cc#newcode45 ...
5 years, 6 months ago (2015-06-10 16:32:10 UTC) #30
ortuno
On 2015/06/10 at 16:32:10, ortuno wrote: > On 2015/06/10 at 02:40:47, armansito wrote: > > ...
5 years, 6 months ago (2015-06-11 19:48:38 UTC) #31
armansito
On 2015/06/11 19:48:38, ortuno wrote: > On 2015/06/10 at 16:32:10, ortuno wrote: > > On ...
5 years, 6 months ago (2015-06-11 19:55:11 UTC) #32
ortuno
On 2015/06/11 at 19:55:11, armansito wrote: > On 2015/06/11 19:48:38, ortuno wrote: > > On ...
5 years, 6 months ago (2015-06-11 19:58:55 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1156573005/240001
5 years, 6 months ago (2015-06-11 20:52:31 UTC) #36
commit-bot: I haz the power
Committed patchset #10 (id:240001)
5 years, 6 months ago (2015-06-11 21:13:13 UTC) #37
commit-bot: I haz the power
5 years, 6 months ago (2015-06-11 21:14:54 UTC) #38
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/a90b6a258b57779ac848cbcef3be13d78a7922b0
Cr-Commit-Position: refs/heads/master@{#334036}

Powered by Google App Engine
This is Rietveld 408576698