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

Issue 2098653002: device/bluetooth/bluez: add discoverable timeout adapter property (Closed)

Created:
4 years, 6 months ago by Eric Caruso
Modified:
4 years, 6 months ago
Reviewers:
rkc, ortuno
CC:
chromium-reviews, ortuno+watch_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

device/bluetooth/bluez: add discoverable timeout adapter property We already have this in our DBus properties and it is useful for some consumers such as ARC. Let's expose this on the BluetoothAdapter for Linux and Chrome OS and implement it there. BUG=b:29617227 TEST=hook up through ARC and read the adapter's discoverable timeout Committed: https://crrev.com/8b8a0d9ac73f7a51f46e928ce9574b1029e4fc76 Cr-Commit-Position: refs/heads/master@{#402010}

Patch Set 1 #

Total comments: 1

Patch Set 2 : restrict changes to bluez #

Patch Set 3 : adding test #

Total comments: 2

Patch Set 4 : fixing nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -0 lines) Patch
M device/bluetooth/bluez/bluetooth_adapter_bluez.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_adapter_bluez.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_bluez_unittest.cc View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_adapter_client.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_adapter_client.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (8 generated)
Eric Caruso
PTAL, thanks.
4 years, 6 months ago (2016-06-23 22:54:20 UTC) #2
ortuno
Please add tests :) Something like the following should might work: // bluetooth_adapter_unittest.h InitWithFakeAdapter(); SetDiscoverableTimeout(kSomeTimeout); ...
4 years, 6 months ago (2016-06-23 23:22:09 UTC) #3
Eric Caruso
On 2016/06/23 23:22:09, ortuno wrote: > Please add tests :) Something like the following should ...
4 years, 6 months ago (2016-06-23 23:26:03 UTC) #4
ortuno
No need, unless arc++ needs it.
4 years, 6 months ago (2016-06-23 23:37:41 UTC) #5
rkc
https://codereview.chromium.org/2098653002/diff/1/device/bluetooth/bluetooth_adapter.h File device/bluetooth/bluetooth_adapter.h (right): https://codereview.chromium.org/2098653002/diff/1/device/bluetooth/bluetooth_adapter.h#newcode316 device/bluetooth/bluetooth_adapter.h:316: virtual uint32_t GetDiscoverableTimeout() const = 0; Is this something ...
4 years, 6 months ago (2016-06-23 23:53:05 UTC) #6
Eric Caruso
On 2016/06/23 23:53:05, rkc wrote: > https://codereview.chromium.org/2098653002/diff/1/device/bluetooth/bluetooth_adapter.h > File device/bluetooth/bluetooth_adapter.h (right): > > https://codereview.chromium.org/2098653002/diff/1/device/bluetooth/bluetooth_adapter.h#newcode316 > ...
4 years, 6 months ago (2016-06-24 00:09:05 UTC) #7
rkc
If this is something purely for ARC++ and something that no other platforms (i.e., WebBluetooth) ...
4 years, 6 months ago (2016-06-24 00:12:35 UTC) #8
rkc
Usually, I am always in the favor of having tests. I am not quite sure ...
4 years, 6 months ago (2016-06-24 00:14:48 UTC) #9
ortuno
On 2016/06/24 at 00:14:48, rkc wrote: > Usually, I am always in the favor of ...
4 years, 6 months ago (2016-06-24 18:03:31 UTC) #10
Eric Caruso
OK, so I think we need to decide whether or not we keep this in ...
4 years, 6 months ago (2016-06-24 18:48:26 UTC) #11
ortuno
On 2016/06/24 at 18:48:26, ejcaruso wrote: > OK, so I think we need to decide ...
4 years, 6 months ago (2016-06-24 19:06:10 UTC) #12
Eric Caruso
On 2016/06/24 19:06:10, ortuno wrote: > On 2016/06/24 at 18:48:26, ejcaruso wrote: > > OK, ...
4 years, 6 months ago (2016-06-24 19:53:55 UTC) #13
Eric Caruso
PTAL.
4 years, 6 months ago (2016-06-24 20:28:21 UTC) #15
ortuno
lgtm with a nit and a small issue. https://codereview.chromium.org/2098653002/diff/40001/device/bluetooth/bluez/bluetooth_bluez_unittest.cc File device/bluetooth/bluez/bluetooth_bluez_unittest.cc (right): https://codereview.chromium.org/2098653002/diff/40001/device/bluetooth/bluez/bluetooth_bluez_unittest.cc#newcode4166 device/bluetooth/bluez/bluetooth_bluez_unittest.cc:4166: const ...
4 years, 6 months ago (2016-06-24 20:35:53 UTC) #16
rkc
lgtm % (ortuno's comments)
4 years, 6 months ago (2016-06-24 20:39:14 UTC) #17
Eric Caruso
Thanks!
4 years, 6 months ago (2016-06-24 20:43:10 UTC) #18
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/2098653002/60001
4 years, 6 months ago (2016-06-24 20:43:37 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/245205)
4 years, 6 months ago (2016-06-24 22:02:49 UTC) #23
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/2098653002/60001
4 years, 6 months ago (2016-06-24 22:07:03 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-24 23:27:50 UTC) #27
commit-bot: I haz the power
4 years, 6 months ago (2016-06-24 23:30:36 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8b8a0d9ac73f7a51f46e928ce9574b1029e4fc76
Cr-Commit-Position: refs/heads/master@{#402010}

Powered by Google App Engine
This is Rietveld 408576698