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

Issue 2388533003: bluetooth: Add AdapterInfo in Bluetooth adapter service. (Closed)

Created:
4 years, 2 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 AdapterInfo in Bluetooth adapter service. Adds getter for basic information about the state of the system's Bluetooth adapter including: + Address + Name + Initialization state + Presence + Power state + Discovering state + Discoverable state This information is logged in the browser console once it's retrieved in JS. BUG=651282 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/68edb718679b840bcac21d56febc5b76e338fe65 Cr-Commit-Position: refs/heads/master@{#423936}

Patch Set 1 #

Patch Set 2 : Add getter for address #

Patch Set 3 : More descriptive comments in mojom #

Total comments: 3

Patch Set 4 : Create AdapterInfo #

Patch Set 5 : Remove WithAdapter #

Patch Set 6 : Remove optional from AdapterInfo #

Patch Set 7 : Merge in upstream change, remove Adapter::Create #

Patch Set 8 : Update mojom comments #

Total comments: 4

Patch Set 9 : JS tweaks #

Patch Set 10 : Fix comment #

Total comments: 4

Patch Set 11 : JS changes, remove const #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -2 lines) Patch
M chrome/browser/resources/bluetooth_internals/bluetooth_internals.js View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -2 lines 0 comments Download
M device/bluetooth/adapter.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M device/bluetooth/adapter.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +12 lines, -0 lines 0 comments Download
M device/bluetooth/public/interfaces/adapter.mojom View 1 2 3 4 5 6 7 2 chunks +13 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 28 (12 generated)
mbrunson
4 years, 2 months ago (2016-09-30 23:41:36 UTC) #4
scheib
LGTM pending ortuno's decision on pattern style in https://codereview.chromium.org/2379573006/ https://codereview.chromium.org/2388533003/diff/40001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2388533003/diff/40001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode46 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:46: ...
4 years, 2 months ago (2016-10-01 00:26:50 UTC) #5
mbrunson
https://codereview.chromium.org/2388533003/diff/40001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2388533003/diff/40001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode46 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:46: adapter.getAddress().then(function(response) { On 2016/10/01 00:26:49, scheib wrote: > Perhaps ...
4 years, 2 months ago (2016-10-03 17:40:10 UTC) #7
scheib
On 2016/10/03 17:40:10, mbrunson wrote: > https://codereview.chromium.org/2388533003/diff/40001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js > File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js > (right): > > https://codereview.chromium.org/2388533003/diff/40001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode46 ...
4 years, 2 months ago (2016-10-03 18:50:33 UTC) #8
ortuno
lgtm bar a nit and a question. https://codereview.chromium.org/2388533003/diff/140001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2388533003/diff/140001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode47 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:47: adapter.getInfo().then(function(response) { ...
4 years, 2 months ago (2016-10-06 01:52:21 UTC) #10
ortuno
lgtm bar a nit and a question.
4 years, 2 months ago (2016-10-06 01:52:22 UTC) #11
mbrunson
https://codereview.chromium.org/2388533003/diff/140001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2388533003/diff/140001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode47 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:47: adapter.getInfo().then(function(response) { console.log(response.info); }); On 2016/10/06 01:52:21, ortuno wrote: ...
4 years, 2 months ago (2016-10-06 17:45:02 UTC) #12
mbrunson
OWNERS review, please: dcheng: device/bluetooth/public/interfaces/adapter.mojom dpapad: chrome/browser/resources/bluetooth_internals/bluetooth_internals.js
4 years, 2 months ago (2016-10-06 18:23:45 UTC) #16
dcheng
mojo lgtm with a nit https://codereview.chromium.org/2388533003/diff/180001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2388533003/diff/180001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode42 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:42: console.log('Getting adapter info'); I'm ...
4 years, 2 months ago (2016-10-06 18:46:28 UTC) #17
mbrunson
https://codereview.chromium.org/2388533003/diff/180001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2388533003/diff/180001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode42 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:42: console.log('Getting adapter info'); On 2016/10/06 18:46:28, dcheng wrote: > ...
4 years, 2 months ago (2016-10-06 21:00:22 UTC) #18
dpapad
https://codereview.chromium.org/2388533003/diff/180001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2388533003/diff/180001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode103 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:103: .then(logAdapterInfo) Let's be consistent within this file. Either initializeProxies() ...
4 years, 2 months ago (2016-10-06 22:25:21 UTC) #19
mbrunson
https://codereview.chromium.org/2388533003/diff/180001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2388533003/diff/180001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode103 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:103: .then(logAdapterInfo) On 2016/10/06 22:25:21, dpapad wrote: > Let's be ...
4 years, 2 months ago (2016-10-07 00:48:11 UTC) #20
dpapad
lgtm
4 years, 2 months ago (2016-10-07 02:10:06 UTC) #21
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/2388533003/200001
4 years, 2 months ago (2016-10-07 17:50:27 UTC) #24
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 2 months ago (2016-10-07 19:42:36 UTC) #26
commit-bot: I haz the power
4 years, 2 months ago (2016-10-07 19:44:23 UTC) #28
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/68edb718679b840bcac21d56febc5b76e338fe65
Cr-Commit-Position: refs/heads/master@{#423936}

Powered by Google App Engine
This is Rietveld 408576698