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

Issue 2353133005: Add the chrome.bluetoothLowEnergy.setAdvertisingInterval API. (Closed)

Created:
4 years, 3 months ago by Rahul Chaturvedi
Modified:
4 years, 3 months ago
Reviewers:
scheib, ortuno, Mark P, Devlin, xiyuan
CC:
asvitkine+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, ortuno+watch_chromium.org, scheib+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add the chrome.bluetoothLowEnergy.setAdvertisingInterval API. This API allows us to set the advertising interval on a device. This API is restricted to an auto-launched app running in Kiosk mode since it can alter the state of a device in a way that would effect other users. Reviews requested, xiyuan@ - overall rdevlin.cronin@ - //extensions/OWNERS ortuno@ -- //device/bluetooth/OWNERS mpearson@ -- histograms R=mpearson@chromium.org, ortuno@chromium.org, rdevlin.cronin@chromium.org, xiyuan@chromium.org BUG=637231 Committed: https://crrev.com/ad68a0dabb2f35b89c304128d357272576586342 Cr-Commit-Position: refs/heads/master@{#420254}

Patch Set 1 #

Total comments: 12

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : . #

Patch Set 5 : build_fix #

Patch Set 6 : moar build fixes #

Patch Set 7 : . #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+313 lines, -35 lines) Patch
M chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.h View 3 chunks +19 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.cc View 1 2 3 4 5 6 2 chunks +43 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest_chromeos.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/bluetooth_low_energy.idl View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/bluetooth_low_energy/set_advertising_interval/manifest.json View 2 chunks +2 lines, -3 lines 0 comments Download
A chrome/test/data/extensions/api_test/bluetooth_low_energy/set_advertising_interval/runtest.js View 1 chunk +57 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter.h View 3 chunks +13 lines, -2 lines 3 comments Download
M device/bluetooth/bluetooth_adapter_android.h View 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_adapter_android.cc View 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_adapter_mac.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_adapter_mac.mm View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_adapter_unittest.cc View 1 chunk +9 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_adapter_win.h View 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_adapter_win.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_advertisement.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_adapter_bluez.h View 1 2 chunks +8 lines, -1 line 0 comments Download
M device/bluetooth/bluez/bluetooth_adapter_bluez.cc View 1 2 5 chunks +41 lines, -1 line 0 comments Download
M device/bluetooth/bluez/bluetooth_advertisement_bluez.h View 1 chunk +3 lines, -4 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_advertisement_bluez.cc View 3 chunks +3 lines, -5 lines 0 comments Download
M device/bluetooth/dbus/bluetooth_le_advertising_manager_client.h View 2 chunks +9 lines, -0 lines 0 comments Download
M device/bluetooth/dbus/bluetooth_le_advertising_manager_client.cc View 1 2 1 chunk +26 lines, -0 lines 1 comment Download
M device/bluetooth/dbus/fake_bluetooth_le_advertising_manager_client.h View 2 chunks +6 lines, -3 lines 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_le_advertising_manager_client.cc View 1 2 2 chunks +22 lines, -2 lines 1 comment Download
M device/bluetooth/test/mock_bluetooth_adapter.h View 1 1 chunk +8 lines, -1 line 0 comments Download
M device/bluetooth/test/mock_bluetooth_adapter.cc View 1 chunk +9 lines, -1 line 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 37 (14 generated)
Rahul Chaturvedi
4 years, 3 months ago (2016-09-20 22:40:52 UTC) #1
Mark P
histograms.xml lgtm
4 years, 3 months ago (2016-09-20 23:08:26 UTC) #2
xiyuan
https://codereview.chromium.org/2353133005/diff/1/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.cc File chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.cc (right): https://codereview.chromium.org/2353133005/diff/1/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.cc#newcode1333 chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.cc:1333: return; nit: remove since we have "break" ? Or ...
4 years, 3 months ago (2016-09-21 16:35:24 UTC) #3
Devlin
https://codereview.chromium.org/2353133005/diff/1/chrome/common/extensions/api/bluetooth_low_energy.idl File chrome/common/extensions/api/bluetooth_low_energy.idl (right): https://codereview.chromium.org/2353133005/diff/1/chrome/common/extensions/api/bluetooth_low_energy.idl#newcode469 chrome/common/extensions/api/bluetooth_low_energy.idl:469: // from the specified intervals. On some hardware, we ...
4 years, 3 months ago (2016-09-21 17:07:03 UTC) #4
Rahul Chaturvedi
https://codereview.chromium.org/2353133005/diff/1/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.cc File chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.cc (right): https://codereview.chromium.org/2353133005/diff/1/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.cc#newcode1333 chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.cc:1333: return; On 2016/09/21 16:35:23, xiyuan wrote: > nit: remove ...
4 years, 3 months ago (2016-09-21 18:54:13 UTC) #5
Devlin
idl lgtm https://codereview.chromium.org/2353133005/diff/20001/chrome/common/extensions/api/bluetooth_low_energy.idl File chrome/common/extensions/api/bluetooth_low_energy.idl (right): https://codereview.chromium.org/2353133005/diff/20001/chrome/common/extensions/api/bluetooth_low_energy.idl#newcode469 chrome/common/extensions/api/bluetooth_low_energy.idl:469: // from the specified intervals. On some ...
4 years, 3 months ago (2016-09-21 18:56:35 UTC) #6
Rahul Chaturvedi
Adding Vincent, since I think ortuno@ is travelling. https://codereview.chromium.org/2353133005/diff/20001/chrome/common/extensions/api/bluetooth_low_energy.idl File chrome/common/extensions/api/bluetooth_low_energy.idl (right): https://codereview.chromium.org/2353133005/diff/20001/chrome/common/extensions/api/bluetooth_low_energy.idl#newcode469 chrome/common/extensions/api/bluetooth_low_energy.idl:469: // ...
4 years, 3 months ago (2016-09-21 19:18:23 UTC) #8
xiyuan
lgtm
4 years, 3 months ago (2016-09-21 19:25:53 UTC) #9
scheib
device/bluetooth LGTM with optional: https://codereview.chromium.org/2353133005/diff/40001/device/bluetooth/bluetooth_advertisement.h File device/bluetooth/bluetooth_advertisement.h (right): https://codereview.chromium.org/2353133005/diff/40001/device/bluetooth/bluetooth_advertisement.h#newcode40 device/bluetooth/bluetooth_advertisement.h:40: ERROR_INVALID_ADVERTISEMENT_INTERVAL, // Advertisement interval specified ...
4 years, 3 months ago (2016-09-21 19:57:00 UTC) #10
Rahul Chaturvedi
https://codereview.chromium.org/2353133005/diff/40001/device/bluetooth/bluetooth_advertisement.h File device/bluetooth/bluetooth_advertisement.h (right): https://codereview.chromium.org/2353133005/diff/40001/device/bluetooth/bluetooth_advertisement.h#newcode40 device/bluetooth/bluetooth_advertisement.h:40: ERROR_INVALID_ADVERTISEMENT_INTERVAL, // Advertisement interval specified On 2016/09/21 19:57:00, scheib ...
4 years, 3 months ago (2016-09-21 20:09:22 UTC) #11
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/2353133005/60001
4 years, 3 months ago (2016-09-21 20:10:35 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/300556)
4 years, 3 months ago (2016-09-21 20:40:57 UTC) #16
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/2353133005/80001
4 years, 3 months ago (2016-09-21 20:46:36 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/89673)
4 years, 3 months ago (2016-09-21 21:35:17 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/2353133005/20002
4 years, 3 months ago (2016-09-21 21:44:59 UTC) #24
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/2353133005/110001
4 years, 3 months ago (2016-09-21 22:06:19 UTC) #27
ortuno
https://codereview.chromium.org/2353133005/diff/110001/device/bluetooth/bluetooth_adapter.h File device/bluetooth/bluetooth_adapter.h (right): https://codereview.chromium.org/2353133005/diff/110001/device/bluetooth/bluetooth_adapter.h#newcode447 device/bluetooth/bluetooth_adapter.h:447: virtual void SetAdvertisingInterval( Wouldn't this fit better as an ...
4 years, 3 months ago (2016-09-21 23:26:12 UTC) #29
Rahul Chaturvedi
On 2016/09/21 23:26:12, ortuno wrote: > https://codereview.chromium.org/2353133005/diff/110001/device/bluetooth/bluetooth_adapter.h > File device/bluetooth/bluetooth_adapter.h (right): > > https://codereview.chromium.org/2353133005/diff/110001/device/bluetooth/bluetooth_adapter.h#newcode447 > ...
4 years, 3 months ago (2016-09-21 23:35:43 UTC) #30
Rahul Chaturvedi
On 2016/09/21 23:26:12, ortuno wrote: > https://codereview.chromium.org/2353133005/diff/110001/device/bluetooth/bluetooth_adapter.h > File device/bluetooth/bluetooth_adapter.h (right): > > https://codereview.chromium.org/2353133005/diff/110001/device/bluetooth/bluetooth_adapter.h#newcode447 > ...
4 years, 3 months ago (2016-09-21 23:35:51 UTC) #31
ortuno
https://codereview.chromium.org/2353133005/diff/110001/device/bluetooth/bluetooth_adapter.h File device/bluetooth/bluetooth_adapter.h (right): https://codereview.chromium.org/2353133005/diff/110001/device/bluetooth/bluetooth_adapter.h#newcode444 device/bluetooth/bluetooth_adapter.h:444: #if defined(OS_CHROMEOS) || defined(OS_LINUX) I think we still want ...
4 years, 3 months ago (2016-09-22 03:02:25 UTC) #32
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/2353133005/110001
4 years, 3 months ago (2016-09-22 03:35:15 UTC) #34
commit-bot: I haz the power
Committed patchset #7 (id:110001)
4 years, 3 months ago (2016-09-22 03:41:47 UTC) #35
commit-bot: I haz the power
4 years, 3 months ago (2016-09-22 03:45:51 UTC) #37
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/ad68a0dabb2f35b89c304128d357272576586342
Cr-Commit-Position: refs/heads/master@{#420254}

Powered by Google App Engine
This is Rietveld 408576698