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

Issue 1159523002: bluetooth: Browser side partial implementation of getPrimaryService. (Closed)

Created:
5 years, 7 months ago by ortuno
Modified:
5 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, jochen+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Browser side partial implementation of getPrimaryService. This adds the browser side implementation for the getPrimaryService function: https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothgattremoteserver-getprimaryservice Updates to the Chrome Implementation Notes corresponding to this patch: https://github.com/WebBluetoothChrome/web-bluetooth/pull/8 This change also adds the necessary mocks for Layout Tests in the following Blink-side patch. This is the second of three patches to implement getPrimaryService: [1] http://crrev.com/1150253004 [2] This patch. [3] http://crrev.com/1152393002 BUG=491399 Committed: https://crrev.com/49eb1ee2a0d9b51e39c687d66f8e530b35fe83cf Cr-Commit-Position: refs/heads/master@{#332335}

Patch Set 1 : #

Total comments: 16

Patch Set 2 : Address jyasskin comments #

Total comments: 1

Patch Set 3 : s/sevice/service #

Total comments: 21

Patch Set 4 : Address scheib's comments #

Patch Set 5 : Fixed order of gypi #

Total comments: 8

Patch Set 6 : Address scheib's comments #

Total comments: 2

Patch Set 7 : Added namespace comment and new line #

Total comments: 2

Patch Set 8 : Add const to method. #

Patch Set 9 : Remove anonymous namespace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -8 lines) Patch
M content/browser/bluetooth/bluetooth_dispatcher_host.h View 1 2 chunks +14 lines, -2 lines 0 comments Download
M content/browser/bluetooth/bluetooth_dispatcher_host.cc View 1 2 3 6 chunks +55 lines, -5 lines 0 comments Download
M content/child/bluetooth/bluetooth_dispatcher.h View 1 2 3 4 5 6 7 8 4 chunks +16 lines, -0 lines 0 comments Download
M content/child/bluetooth/bluetooth_dispatcher.cc View 1 2 3 4 5 6 7 8 4 chunks +69 lines, -0 lines 0 comments Download
M content/child/bluetooth/web_bluetooth_impl.h View 1 chunk +5 lines, -0 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 3 2 chunks +19 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h View 3 chunks +12 lines, -1 line 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc View 3 chunks +25 lines, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_device.h View 1 2 3 4 5 6 7 2 chunks +16 lines, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_device.cc View 1 2 3 4 5 6 7 2 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (11 generated)
ortuno
@jyasskin: PTAL
5 years, 7 months ago (2015-05-23 01:20:51 UTC) #3
Jeffrey Yasskin
https://codereview.chromium.org/1159523002/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1159523002/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode21 content/browser/bluetooth/bluetooth_dispatcher_host.cc:21: const int kDelayTime = 5; // 5 seconds for ...
5 years, 7 months ago (2015-05-27 18:37:00 UTC) #4
ortuno
@jyasskin: Ready for review again. https://codereview.chromium.org/1159523002/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1159523002/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode21 content/browser/bluetooth/bluetooth_dispatcher_host.cc:21: const int kDelayTime = ...
5 years, 6 months ago (2015-05-27 21:07:46 UTC) #5
Jeffrey Yasskin
lgtm https://codereview.chromium.org/1159523002/diff/40001/content/child/bluetooth/bluetooth_dispatcher.h File content/child/bluetooth/bluetooth_dispatcher.h (right): https://codereview.chromium.org/1159523002/diff/40001/content/child/bluetooth/bluetooth_dispatcher.h#newcode81 content/child/bluetooth/bluetooth_dispatcher.h:81: const std::string& sevice_instance_id, sp: sevice->service
5 years, 6 months ago (2015-05-27 21:24:34 UTC) #6
ortuno
@jyasskin: Thanks! @scheib: PTAL
5 years, 6 months ago (2015-05-27 21:28:36 UTC) #8
scheib
https://codereview.chromium.org/1159523002/diff/60001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1159523002/diff/60001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode138 content/browser/bluetooth/bluetooth_dispatcher_host.cc:138: // TODO(ortuno): Right now it's pointless to check if ...
5 years, 6 months ago (2015-05-28 23:09:17 UTC) #9
ortuno
@scheib: Ready for review again. @jyasskin: Could you take a look at the new struct, ...
5 years, 6 months ago (2015-05-29 17:53:55 UTC) #11
Jeffrey Yasskin
Still LGTM https://codereview.chromium.org/1159523002/diff/120001/content/child/bluetooth/bluetooth_dispatcher.h File content/child/bluetooth/bluetooth_dispatcher.h (right): https://codereview.chromium.org/1159523002/diff/120001/content/child/bluetooth/bluetooth_dispatcher.h#newcode96 content/child/bluetooth/bluetooth_dispatcher.h:96: // Owns callback objects. They aren't callback ...
5 years, 6 months ago (2015-05-29 20:31:42 UTC) #12
scheib
https://codereview.chromium.org/1159523002/diff/60001/content/child/bluetooth/bluetooth_dispatcher.cc File content/child/bluetooth/bluetooth_dispatcher.cc (right): https://codereview.chromium.org/1159523002/diff/60001/content/child/bluetooth/bluetooth_dispatcher.cc#newcode218 content/child/bluetooth/bluetooth_dispatcher.cc:218: // Since we couldn't find the service return null. ...
5 years, 6 months ago (2015-05-31 19:48:41 UTC) #13
Jeffrey Yasskin
https://codereview.chromium.org/1159523002/diff/120001/content/child/bluetooth/bluetooth_primary_service_request.h File content/child/bluetooth/bluetooth_primary_service_request.h (right): https://codereview.chromium.org/1159523002/diff/120001/content/child/bluetooth/bluetooth_primary_service_request.h#newcode13 content/child/bluetooth/bluetooth_primary_service_request.h:13: struct BluetoothPrimaryServiceRequest { On 2015/05/31 19:48:41, scheib wrote: > ...
5 years, 6 months ago (2015-05-31 21:11:12 UTC) #14
ortuno
Also added reference in WebBluetoothChrome https://codereview.chromium.org/1159523002/diff/120001/content/child/bluetooth/bluetooth_dispatcher.h File content/child/bluetooth/bluetooth_dispatcher.h (right): https://codereview.chromium.org/1159523002/diff/120001/content/child/bluetooth/bluetooth_dispatcher.h#newcode96 content/child/bluetooth/bluetooth_dispatcher.h:96: // Owns callback objects. ...
5 years, 6 months ago (2015-06-01 18:27:03 UTC) #15
scheib
LGTM one thing left: https://codereview.chromium.org/1159523002/diff/140001/content/child/bluetooth/bluetooth_dispatcher.cc File content/child/bluetooth/bluetooth_dispatcher.cc (right): https://codereview.chromium.org/1159523002/diff/140001/content/child/bluetooth/bluetooth_dispatcher.cc#newcode43 content/child/bluetooth/bluetooth_dispatcher.cc:43: } Blank line. And "Terminate ...
5 years, 6 months ago (2015-06-01 19:35:56 UTC) #16
ortuno
https://codereview.chromium.org/1159523002/diff/140001/content/child/bluetooth/bluetooth_dispatcher.cc File content/child/bluetooth/bluetooth_dispatcher.cc (right): https://codereview.chromium.org/1159523002/diff/140001/content/child/bluetooth/bluetooth_dispatcher.cc#newcode43 content/child/bluetooth/bluetooth_dispatcher.cc:43: } On 2015/06/01 19:35:56, scheib wrote: > Blank line. ...
5 years, 6 months ago (2015-06-01 19:47:09 UTC) #17
ortuno
@tsepez: Please review changes in bluetooth_messages.h @armansito: Please review changes in mock_bluetooth_device
5 years, 6 months ago (2015-06-01 19:48:10 UTC) #19
armansito
device/bluetooth lgtm with one nit https://codereview.chromium.org/1159523002/diff/160001/device/bluetooth/test/mock_bluetooth_device.h File device/bluetooth/test/mock_bluetooth_device.h (right): https://codereview.chromium.org/1159523002/diff/160001/device/bluetooth/test/mock_bluetooth_device.h#newcode94 device/bluetooth/test/mock_bluetooth_device.h:94: std::vector<BluetoothGattService*> GetMockServices(); nit: make ...
5 years, 6 months ago (2015-06-01 21:10:15 UTC) #20
ortuno
@armansito: Thanks! https://codereview.chromium.org/1159523002/diff/160001/device/bluetooth/test/mock_bluetooth_device.h File device/bluetooth/test/mock_bluetooth_device.h (right): https://codereview.chromium.org/1159523002/diff/160001/device/bluetooth/test/mock_bluetooth_device.h#newcode94 device/bluetooth/test/mock_bluetooth_device.h:94: std::vector<BluetoothGattService*> GetMockServices(); On 2015/06/01 21:10:15, armansito wrote: ...
5 years, 6 months ago (2015-06-01 21:28:55 UTC) #21
Tom Sepez
Messages LGTM.
5 years, 6 months ago (2015-06-01 22:44:33 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1159523002/150012
5 years, 6 months ago (2015-06-01 23:36:53 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/28576)
5 years, 6 months ago (2015-06-02 01:04:51 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1159523002/150012
5 years, 6 months ago (2015-06-02 01:12:30 UTC) #31
commit-bot: I haz the power
Committed patchset #9 (id:150012)
5 years, 6 months ago (2015-06-02 03:10:30 UTC) #32
commit-bot: I haz the power
5 years, 6 months ago (2015-06-02 03:12:36 UTC) #33
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/49eb1ee2a0d9b51e39c687d66f8e530b35fe83cf
Cr-Commit-Position: refs/heads/master@{#332335}

Powered by Google App Engine
This is Rietveld 408576698