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

Issue 2357383002: bluetooth: Add device list retrieval for chrome://bluetooth-internals (Closed)

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

Description

bluetooth: Add device list retrieval for chrome://bluetooth-internals Changes WebUI setup to a MojoWebUI for chrome://bluetooth-internals page. Adds mojom files for Bluetooth service definition and internals page handler. Adds basic Bluetooth device retrieval using starter Bluetooth service implementation for logging on web front end. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation BUG=651282 Committed: https://crrev.com/e619ab633a89f1c845f5fdd7584344a5914b30a9 Committed: https://crrev.com/70d50e7a3e3289bfce518ae91a85759b40469642 Cr-Original-Commit-Position: refs/heads/master@{#422570} Cr-Commit-Position: refs/heads/master@{#422855}

Patch Set 1 #

Total comments: 66

Patch Set 2 : Mojo interface and implementation fixes #

Total comments: 35

Patch Set 3 : Internals page/Mojo service implementation change #

Patch Set 4 : Revert chrome browser client file #

Total comments: 55

Patch Set 5 : Remove unneccesary dependencies, limit Mojom visibility, style fixes #

Patch Set 6 : Remove extra bluetooth dep in //chrome/broswer/ui #

Patch Set 7 : continuation #

Patch Set 8 : Update visibility #

Total comments: 5

Patch Set 9 : Visibility and dep changes #

Patch Set 10 : Remove ES6 #

Patch Set 11 : Fix JS syntax #

Patch Set 12 : Add dependency to gen mojom for browser/resources #

Patch Set 13 : Move dependency to //chrome/browser:resources target #

Total comments: 8

Patch Set 14 : Fix merge issue #

Patch Set 15 : Remove scoped_refptr get calls #

Total comments: 12

Patch Set 16 : Style changes, destructuring in JS #

Patch Set 17 : Fix Windows BUILD visibility #

Unified diffs Side-by-side diffs Delta from patch set Stats (+307 lines, -5 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/resources/bluetooth_internals/bluetooth_internals.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +79 lines, -3 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M device/bluetooth/BUILD.gn View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
A device/bluetooth/adapter.h View 1 2 3 4 5 6 1 chunk +58 lines, -0 lines 0 comments Download
A device/bluetooth/adapter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +102 lines, -0 lines 0 comments Download
M device/bluetooth/public/interfaces/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +13 lines, -1 line 0 comments Download
A device/bluetooth/public/interfaces/adapter.mojom View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 121 (75 generated)
mbrunson
4 years, 3 months ago (2016-09-21 19:27:39 UTC) #3
ortuno
First round of comments. I didn't get to look at everything, will continue tomorrow. https://codereview.chromium.org/2357383002/diff/1/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js ...
4 years, 3 months ago (2016-09-22 08:32:54 UTC) #5
scheib
https://codereview.chromium.org/2357383002/diff/1/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2357383002/diff/1/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode26 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:26: return new Promise(function(resolve, reject) { On 2016/09/22 08:32:53, ortuno ...
4 years, 3 months ago (2016-09-23 20:53:52 UTC) #6
mbrunson
https://codereview.chromium.org/2357383002/diff/1/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2357383002/diff/1/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode26 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:26: return new Promise(function(resolve, reject) { On 2016/09/22 08:32:53, ortuno ...
4 years, 3 months ago (2016-09-24 01:05:48 UTC) #7
ortuno
Have to talked to scheib about testing? https://codereview.chromium.org/2357383002/diff/1/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2357383002/diff/1/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode26 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:26: return new ...
4 years, 2 months ago (2016-09-26 01:57:56 UTC) #12
ortuno
https://codereview.chromium.org/2357383002/diff/10001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2357383002/diff/10001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode76 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:76: clientHandle = connection.bindStubDerivedImpl(adapterClient); You are creating a different pipe ...
4 years, 2 months ago (2016-09-26 07:45:18 UTC) #13
scheib
(some comments, more review to do) https://codereview.chromium.org/2357383002/diff/10001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2357383002/diff/10001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode76 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:76: clientHandle = connection.bindStubDerivedImpl(adapterClient); ...
4 years, 2 months ago (2016-09-26 18:00:38 UTC) #14
scheib
https://codereview.chromium.org/2357383002/diff/10001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2357383002/diff/10001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode46 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:46: class AdapterClientImpl extends bluetooth.AdapterClient.stubClass { Move the AdapterClientImpl class ...
4 years, 2 months ago (2016-09-26 19:37:27 UTC) #15
scheib
On 2016/09/26 01:57:56, ortuno wrote: > Have to talked to scheib about testing? https://bugs.chromium.org/p/chromium/issues/detail?id=612319#c19
4 years, 2 months ago (2016-09-26 20:44:26 UTC) #16
mbrunson
Seems like the fixes are in and working now. We'll see what the trybots say. ...
4 years, 2 months ago (2016-09-28 02:18:23 UTC) #18
scheib
https://codereview.chromium.org/2357383002/diff/40013/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2357383002/diff/40013/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode62 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:62: .then(([frameInterfaces, bluetooth, connection]) => { The 'bluetooth' returned module ...
4 years, 2 months ago (2016-09-28 03:12:21 UTC) #23
ortuno
https://codereview.chromium.org/2357383002/diff/40013/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/2357383002/diff/40013/chrome/browser/browser_resources.grd#newcode97 chrome/browser/browser_resources.grd:97: <include name="IDR_BLUETOOTH_INTERNALS_MOJO_JS" file="${root_gen_dir}\chrome\browser\ui\webui\bluetooth_internals\bluetooth_internals.mojom.js" use_base_dir="false" type="BINDATA"/> There is no bluetooth_internals.mojom ...
4 years, 2 months ago (2016-09-28 09:44:56 UTC) #24
mbrunson
https://codereview.chromium.org/2357383002/diff/40013/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/2357383002/diff/40013/chrome/browser/browser_resources.grd#newcode97 chrome/browser/browser_resources.grd:97: <include name="IDR_BLUETOOTH_INTERNALS_MOJO_JS" file="${root_gen_dir}\chrome\browser\ui\webui\bluetooth_internals\bluetooth_internals.mojom.js" use_base_dir="false" type="BINDATA"/> On 2016/09/28 09:44:54, ortuno ...
4 years, 2 months ago (2016-09-28 21:20:36 UTC) #25
scheib
https://codereview.chromium.org/2357383002/diff/40013/device/bluetooth/public/interfaces/BUILD.gn File device/bluetooth/public/interfaces/BUILD.gn (right): https://codereview.chromium.org/2357383002/diff/40013/device/bluetooth/public/interfaces/BUILD.gn#newcode15 device/bluetooth/public/interfaces/BUILD.gn:15: mojom("experimental_interfaces") { On 2016/09/28 21:20:35, mbrunson wrote: > On ...
4 years, 2 months ago (2016-09-28 23:26:40 UTC) #32
scheib
LGTM pending ortuno's review as well. I think we can fix up additional nits as ...
4 years, 2 months ago (2016-09-29 00:58:33 UTC) #35
ortuno
https://codereview.chromium.org/2357383002/diff/40013/device/bluetooth/BUILD.gn File device/bluetooth/BUILD.gn (right): https://codereview.chromium.org/2357383002/diff/40013/device/bluetooth/BUILD.gn#newcode23 device/bluetooth/BUILD.gn:23: source_set("mojo") { On 2016/09/28 at 21:20:35, mbrunson wrote: > ...
4 years, 2 months ago (2016-09-29 01:43:06 UTC) #38
ortuno
also lgtm bar the visibility issue.
4 years, 2 months ago (2016-09-29 01:43:24 UTC) #39
mbrunson
https://codereview.chromium.org/2357383002/diff/40013/device/bluetooth/BUILD.gn File device/bluetooth/BUILD.gn (right): https://codereview.chromium.org/2357383002/diff/40013/device/bluetooth/BUILD.gn#newcode23 device/bluetooth/BUILD.gn:23: source_set("mojo") { On 2016/09/29 01:43:06, ortuno wrote: > On ...
4 years, 2 months ago (2016-09-29 02:50:23 UTC) #45
ortuno
https://codereview.chromium.org/2357383002/diff/120001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/2357383002/diff/120001/chrome/browser/BUILD.gn#newcode1404 chrome/browser/BUILD.gn:1404: "//device/bluetooth:mojo", You also need a separate deps for //device/bluetooth/public/interfaces:experimental_interfaces ...
4 years, 2 months ago (2016-09-29 03:01:12 UTC) #46
mbrunson
https://codereview.chromium.org/2357383002/diff/120001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/2357383002/diff/120001/chrome/browser/BUILD.gn#newcode1404 chrome/browser/BUILD.gn:1404: "//device/bluetooth:mojo", On 2016/09/29 03:01:12, ortuno wrote: > You also ...
4 years, 2 months ago (2016-09-29 18:00:09 UTC) #47
mbrunson
OWNERS review, please jam: chrome/browser/browser_resources.grd chrome/browser/resources/bluetooth_internals/bluetooth_internals.js chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.cc device/bluetooth/adapter.cc device/bluetooth/adapter.h device/bluetooth/public/interfaces/BUILD.gn third_party/WebKit/public/BUILD.gn dbeam: Can you help ...
4 years, 2 months ago (2016-09-29 20:03:54 UTC) #53
Dan Beam
On 2016/09/29 20:03:54, mbrunson wrote: > > dbeam: > Can you help me figure out ...
4 years, 2 months ago (2016-09-29 22:25:50 UTC) #58
mbrunson
On 2016/09/29 22:25:50, Dan Beam wrote: > On 2016/09/29 20:03:54, mbrunson wrote: > > > ...
4 years, 2 months ago (2016-09-29 22:28:32 UTC) #59
Dan Beam
On 2016/09/29 22:28:32, mbrunson wrote: > On 2016/09/29 22:25:50, Dan Beam wrote: > > On ...
4 years, 2 months ago (2016-09-29 22:35:59 UTC) #60
mbrunson
On 2016/09/29 22:35:59, Dan Beam wrote: > On 2016/09/29 22:28:32, mbrunson wrote: > > On ...
4 years, 2 months ago (2016-09-29 23:55:39 UTC) #63
scheib
https://codereview.chromium.org/2357383002/diff/120001/device/bluetooth/public/interfaces/BUILD.gn File device/bluetooth/public/interfaces/BUILD.gn (right): https://codereview.chromium.org/2357383002/diff/120001/device/bluetooth/public/interfaces/BUILD.gn#newcode22 device/bluetooth/public/interfaces/BUILD.gn:22: "//chrome/browser/ui/webui/bluetooth_internals:*", On 2016/09/29 18:00:09, mbrunson wrote: > On 2016/09/29 ...
4 years, 2 months ago (2016-09-30 04:25:37 UTC) #72
dcheng
https://codereview.chromium.org/2357383002/diff/220001/device/bluetooth/adapter.cc File device/bluetooth/adapter.cc (right): https://codereview.chromium.org/2357383002/diff/220001/device/bluetooth/adapter.cc#newcode21 device/bluetooth/adapter.cc:21: if (adapter_.get()) { Nit: no .get() here and elsewhere ...
4 years, 2 months ago (2016-09-30 07:04:07 UTC) #73
jam
On 2016/09/29 20:03:54, mbrunson wrote: > OWNERS review, please > > jam: > chrome/browser/browser_resources.grd > ...
4 years, 2 months ago (2016-09-30 16:25:41 UTC) #74
scheib
https://codereview.chromium.org/2357383002/diff/220001/device/bluetooth/public/interfaces/adapter.mojom File device/bluetooth/public/interfaces/adapter.mojom (right): https://codereview.chromium.org/2357383002/diff/220001/device/bluetooth/public/interfaces/adapter.mojom#newcode21 device/bluetooth/public/interfaces/adapter.mojom:21: SetClient(AdapterClient client); On 2016/09/30 07:04:06, dcheng wrote: > Can ...
4 years, 2 months ago (2016-09-30 16:52:42 UTC) #75
dcheng
On 2016/09/30 16:52:42, scheib wrote: > https://codereview.chromium.org/2357383002/diff/220001/device/bluetooth/public/interfaces/adapter.mojom > File device/bluetooth/public/interfaces/adapter.mojom (right): > > https://codereview.chromium.org/2357383002/diff/220001/device/bluetooth/public/interfaces/adapter.mojom#newcode21 > ...
4 years, 2 months ago (2016-09-30 16:55:45 UTC) #76
mbrunson
On 2016/09/30 16:25:41, jam wrote: > On 2016/09/29 20:03:54, mbrunson wrote: > > OWNERS review, ...
4 years, 2 months ago (2016-09-30 17:56:29 UTC) #80
mbrunson
https://codereview.chromium.org/2357383002/diff/220001/device/bluetooth/adapter.cc File device/bluetooth/adapter.cc (right): https://codereview.chromium.org/2357383002/diff/220001/device/bluetooth/adapter.cc#newcode21 device/bluetooth/adapter.cc:21: if (adapter_.get()) { On 2016/09/30 07:04:06, dcheng wrote: > ...
4 years, 2 months ago (2016-09-30 22:28:42 UTC) #83
dcheng
Per the offline discussion, we'll stick with the current interface. For actually communicating with devices, ...
4 years, 2 months ago (2016-09-30 22:41:07 UTC) #84
Dan Beam
+dpapad@ for mojo-based webui
4 years, 2 months ago (2016-10-01 01:43:37 UTC) #91
dpapad
The CL description mentions changes to Mojo's connection.js, but I don't see any such changes. ...
4 years, 2 months ago (2016-10-03 17:51:04 UTC) #96
mbrunson
https://codereview.chromium.org/2357383002/diff/260001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2357383002/diff/260001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode21 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:21: console.log('Device added'); On 2016/10/03 17:51:03, dpapad wrote: > Are ...
4 years, 2 months ago (2016-10-03 18:56:03 UTC) #98
dpapad
LGTM
4 years, 2 months ago (2016-10-03 19:26:27 UTC) #99
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/2357383002/280001
4 years, 2 months ago (2016-10-03 19:32:53 UTC) #102
commit-bot: I haz the power
Committed patchset #16 (id:280001)
4 years, 2 months ago (2016-10-03 22:34:33 UTC) #104
commit-bot: I haz the power
Patchset 16 (id:??) landed as https://crrev.com/e619ab633a89f1c845f5fdd7584344a5914b30a9 Cr-Commit-Position: refs/heads/master@{#422570}
4 years, 2 months ago (2016-10-03 22:35:47 UTC) #106
horo
A revert of this CL (patchset #16 id:280001) has been created in https://codereview.chromium.org/2389053002/ by horo@chromium.org. ...
4 years, 2 months ago (2016-10-03 23:32:20 UTC) #107
jaydasika
A revert of this CL (patchset #16 id:280001) has been created in https://codereview.chromium.org/2390933002/ by jaydasika@chromium.org. ...
4 years, 2 months ago (2016-10-03 23:39:05 UTC) #108
scheib
<•scheib> Did the speculative revert fix the build? <horo_> yes <horo_> https://uberchromegw.corp.google.com/i/chromium.linux/builders/Linux%20Tests%20%28dbg%29%281%29/builds/57755 <•jaydasika> https://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20Win/builds/11355
4 years, 2 months ago (2016-10-04 01:32:49 UTC) #112
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/2357383002/300001
4 years, 2 months ago (2016-10-04 17:45:44 UTC) #117
commit-bot: I haz the power
Committed patchset #17 (id:300001)
4 years, 2 months ago (2016-10-04 17:52:39 UTC) #119
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 17:53:59 UTC) #121
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/70d50e7a3e3289bfce518ae91a85759b40469642
Cr-Commit-Position: refs/heads/master@{#422855}

Powered by Google App Engine
This is Rietveld 408576698