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

Issue 2401193002: bluetooth: Add Device service for chrome://bluetooth-internals. (Closed)

Created:
4 years, 2 months ago by mbrunson
Modified:
4 years, 2 months ago
CC:
Aaron Boodman, abarth-chromium, arv+watch_chromium.org, chromium-reviews, darin (slow to review), ortuno+watch_chromium.org, qsr+mojo_chromium.org, Devlin, scheib+watch_chromium.org, stevenjb, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Add Device service for chrome://bluetooth-internals. Moves DeviceInfo struct to device.mojom and creates interface for Device. Adds starter code for Device implementation for the Bluetooth Mojo service. Adds GetDevice to the Adapter service to create Device interfaces. Adds console logging for DeviceInfo on chrome://bluetooth-internals page. BUG=651282 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/22ff37419618d39c8ff220108a935d3d8762a4f5 Cr-Commit-Position: refs/heads/master@{#425085}

Patch Set 1 #

Patch Set 2 : Update JS #

Patch Set 3 : Add log function comment #

Total comments: 27

Patch Set 4 : Rename LEDevice, fix TODO, adapter ownership #

Patch Set 5 : Include ref_counted #

Total comments: 8

Patch Set 6 : Mojom changes, JS formatting #

Total comments: 2

Patch Set 7 : Reorganizing, cleanup includes, add name for display #

Total comments: 16

Patch Set 8 : JS, comment fixes #

Total comments: 6

Patch Set 9 : Simplify promise #

Total comments: 7

Patch Set 10 : Fixes #

Total comments: 2

Patch Set 11 : Fully qualify mojom import #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -64 lines) Patch
M chrome/browser/browser_resources.grd View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/bluetooth_internals/bluetooth_internals.js View 1 2 3 4 5 6 7 8 3 chunks +54 lines, -29 lines 0 comments Download
M chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.cc View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M device/bluetooth/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M device/bluetooth/adapter.h View 1 2 3 4 5 6 3 chunks +6 lines, -5 lines 0 comments Download
M device/bluetooth/adapter.cc View 1 2 3 4 5 6 4 chunks +13 lines, -20 lines 0 comments Download
A device/bluetooth/device.h View 1 2 3 4 5 1 chunk +47 lines, -0 lines 0 comments Download
A device/bluetooth/device.cc View 1 2 3 4 5 6 7 8 9 1 chunk +42 lines, -0 lines 0 comments Download
M device/bluetooth/public/interfaces/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M device/bluetooth/public/interfaces/adapter.mojom View 1 2 3 4 5 6 7 8 9 10 3 chunks +6 lines, -8 lines 0 comments Download
A device/bluetooth/public/interfaces/device.mojom View 1 2 3 4 5 6 7 8 9 1 chunk +17 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 60 (28 generated)
mbrunson
4 years, 2 months ago (2016-10-07 23:04:35 UTC) #3
ortuno
https://codereview.chromium.org/2401193002/diff/40001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2401193002/diff/40001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode37 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:37: * TODO: Move to shared location. See http://crbug.com/652361. Please ...
4 years, 2 months ago (2016-10-10 00:11:20 UTC) #4
mbrunson
https://codereview.chromium.org/2401193002/diff/40001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2401193002/diff/40001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode37 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:37: * TODO: Move to shared location. See http://crbug.com/652361. On ...
4 years, 2 months ago (2016-10-10 19:21:28 UTC) #5
scheib
https://codereview.chromium.org/2401193002/diff/80001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2401193002/diff/80001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode64 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:64: [bluetoothAdapter, bluetoothDevice, connection] = modules; Why destructure twice? Why ...
4 years, 2 months ago (2016-10-10 20:23:51 UTC) #6
mbrunson
https://codereview.chromium.org/2401193002/diff/80001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2401193002/diff/80001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode64 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:64: [bluetoothAdapter, bluetoothDevice, connection] = modules; On 2016/10/10 20:23:51, scheib ...
4 years, 2 months ago (2016-10-10 22:01:09 UTC) #9
ortuno
lgtm bar some nits. It would be nice if you ran trybots before sending in ...
4 years, 2 months ago (2016-10-11 00:45:46 UTC) #10
scheib
LGTM
4 years, 2 months ago (2016-10-11 18:06:52 UTC) #12
mbrunson
https://codereview.chromium.org/2401193002/diff/100001/device/bluetooth/adapter.h File device/bluetooth/adapter.h (right): https://codereview.chromium.org/2401193002/diff/100001/device/bluetooth/adapter.h#newcode31 device/bluetooth/adapter.h:31: void GetDevice(const std::string& address, On 2016/10/11 00:45:45, ortuno wrote: ...
4 years, 2 months ago (2016-10-11 19:30:35 UTC) #18
mbrunson
OWNERS review, please: dpapad: chrome/browser/browser_resources.grd chrome/browser/resources/bluetooth_internals/bluetooth_internals.js chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.cc dcheng: device/bluetooth/public/interfaces/adapter.mojom device/bluetooth/public/interfaces/device.mojom I'm getting to the point ...
4 years, 2 months ago (2016-10-11 19:51:59 UTC) #20
dpapad
https://codereview.chromium.org/2401193002/diff/120001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2401193002/diff/120001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode18 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:18: * @param {!bluetoothDevice.DeviceInfo} device the device that was added ...
4 years, 2 months ago (2016-10-11 21:58:33 UTC) #21
mbrunson
https://codereview.chromium.org/2401193002/diff/120001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2401193002/diff/120001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode18 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:18: * @param {!bluetoothDevice.DeviceInfo} device the device that was added ...
4 years, 2 months ago (2016-10-11 23:15:33 UTC) #24
dpapad
https://codereview.chromium.org/2401193002/diff/140001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2401193002/diff/140001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode114 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:114: .then(function() { return adapter.getDevices(); }) I am confused about ...
4 years, 2 months ago (2016-10-11 23:51:04 UTC) #25
mbrunson
https://codereview.chromium.org/2401193002/diff/140001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2401193002/diff/140001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode114 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:114: .then(function() { return adapter.getDevices(); }) On 2016/10/11 23:51:04, dpapad ...
4 years, 2 months ago (2016-10-12 01:37:42 UTC) #26
dpapad
https://codereview.chromium.org/2401193002/diff/140001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2401193002/diff/140001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode114 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:114: .then(function() { return adapter.getDevices(); }) > The main purpose ...
4 years, 2 months ago (2016-10-12 17:39:02 UTC) #27
mbrunson
https://codereview.chromium.org/2401193002/diff/140001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2401193002/diff/140001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode114 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:114: .then(function() { return adapter.getDevices(); }) On 2016/10/12 17:39:02, dpapad ...
4 years, 2 months ago (2016-10-12 18:06:52 UTC) #28
dcheng
On 2016/10/12 18:06:52, mbrunson wrote: > https://codereview.chromium.org/2401193002/diff/140001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js > File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js > (right): > > https://codereview.chromium.org/2401193002/diff/140001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode114 ...
4 years, 2 months ago (2016-10-12 18:27:43 UTC) #29
mbrunson
On 2016/10/12 18:27:43, dcheng wrote: > On 2016/10/12 18:06:52, mbrunson wrote: > > > https://codereview.chromium.org/2401193002/diff/140001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js ...
4 years, 2 months ago (2016-10-12 19:06:49 UTC) #30
scheib
On 2016/10/12 19:06:49, mbrunson wrote: > On 2016/10/12 18:27:43, dcheng wrote: > > On 2016/10/12 ...
4 years, 2 months ago (2016-10-12 19:32:05 UTC) #31
dpapad
https://codereview.chromium.org/2401193002/diff/160001/chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.cc File chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.cc (right): https://codereview.chromium.org/2401193002/diff/160001/chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.cc#newcode27 chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.cc:27: "device/bluetooth/public/interfaces/device.mojom", +dbeam@chromium.org Still catching up with the design doc ...
4 years, 2 months ago (2016-10-12 19:42:45 UTC) #32
dcheng
On 2016/10/12 19:32:05, scheib wrote: > On 2016/10/12 19:06:49, mbrunson wrote: > > On 2016/10/12 ...
4 years, 2 months ago (2016-10-12 19:46:56 UTC) #33
dpapad
LGTM https://codereview.chromium.org/2401193002/diff/160001/chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.cc File chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.cc (right): https://codereview.chromium.org/2401193002/diff/160001/chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.cc#newcode27 chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.cc:27: "device/bluetooth/public/interfaces/device.mojom", > I am looping in more WebUI ...
4 years, 2 months ago (2016-10-12 21:02:33 UTC) #34
Dan Beam
+stevenjb & rdevlin.cronin if i'm reading your design doc correctly, this UI will always be ...
4 years, 2 months ago (2016-10-12 21:06:08 UTC) #36
scheib
On 2016/10/12 21:06:08, Dan Beam wrote: > +stevenjb & rdevlin.cronin > > if i'm reading ...
4 years, 2 months ago (2016-10-12 21:11:57 UTC) #37
mbrunson
https://codereview.chromium.org/2401193002/diff/160001/chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.cc File chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.cc (right): https://codereview.chromium.org/2401193002/diff/160001/chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.cc#newcode27 chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.cc:27: "device/bluetooth/public/interfaces/device.mojom", On 2016/10/12 21:02:32, dpapad wrote: > > I ...
4 years, 2 months ago (2016-10-12 23:20:03 UTC) #40
Dan Beam
On 2016/10/12 21:11:57, scheib wrote: > On 2016/10/12 21:06:08, Dan Beam wrote: > > +stevenjb ...
4 years, 2 months ago (2016-10-12 23:21:35 UTC) #41
ortuno
On 2016/10/12 at 23:21:35, dbeam wrote: > On 2016/10/12 21:11:57, scheib wrote: > > On ...
4 years, 2 months ago (2016-10-12 23:23:49 UTC) #42
scheib
On 2016/10/12 23:23:49, ortuno wrote: > On 2016/10/12 at 23:21:35, dbeam wrote: > > On ...
4 years, 2 months ago (2016-10-13 01:39:45 UTC) #45
Ken Rockot(use gerrit already)
Not that anyone asked, but this LGTM ;) https://codereview.chromium.org/2401193002/diff/180001/device/bluetooth/public/interfaces/adapter.mojom File device/bluetooth/public/interfaces/adapter.mojom (right): https://codereview.chromium.org/2401193002/diff/180001/device/bluetooth/public/interfaces/adapter.mojom#newcode7 device/bluetooth/public/interfaces/adapter.mojom:7: import ...
4 years, 2 months ago (2016-10-13 03:26:58 UTC) #47
mbrunson
https://codereview.chromium.org/2401193002/diff/180001/device/bluetooth/public/interfaces/adapter.mojom File device/bluetooth/public/interfaces/adapter.mojom (right): https://codereview.chromium.org/2401193002/diff/180001/device/bluetooth/public/interfaces/adapter.mojom#newcode7 device/bluetooth/public/interfaces/adapter.mojom:7: import "device.mojom"; On 2016/10/13 03:26:58, Ken Rockot wrote: > ...
4 years, 2 months ago (2016-10-13 03:36:58 UTC) #48
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/2401193002/200001
4 years, 2 months ago (2016-10-13 17:53:47 UTC) #56
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 2 months ago (2016-10-13 18:05:02 UTC) #58
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 18:06:59 UTC) #60
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/22ff37419618d39c8ff220108a935d3d8762a4f5
Cr-Commit-Position: refs/heads/master@{#425085}

Powered by Google App Engine
This is Rietveld 408576698