New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 896113 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Last visit > 30 days ago
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Feature

Blocking:
issue 870192



Sign in to add a comment

bluetooth: Finish implementing BluetoothSystem::SetPowered.

Project Member Reported by ortuno@google.com, Oct 17

Issue description

BluetoothSystem::SetPowered currently forwards the calls to BlueZ but that's not enough for Chrome OS.

There are two missing features:

1. BluetoothSystem should remember what state the user was in, so that the next time the user sign in the state remains the same.
2. SetPowered() should support concurrent calls.

 
Project Member

Comment 1 by bugdroid1@chromium.org, Oct 22

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/328cc0544ca81f04fd4d053bb93ffa669a371943

commit 328cc0544ca81f04fd4d053bb93ffa669a371943
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Mon Oct 22 00:52:00 2018

bluetooth: Change state to kTransitioning when SetPowered gets called

Bug: 896113
Change-Id: I60f8e082a01dd1a7007004ae26ff275c87eaa8bf
Reviewed-on: https://chromium-review.googlesource.com/c/1290576
Reviewed-by: Dominick Ng <dominickn@chromium.org>
Reviewed-by: Ovidio Henriquez <odejesush@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#601462}
[modify] https://crrev.com/328cc0544ca81f04fd4d053bb93ffa669a371943/services/device/bluetooth/bluetooth_system.cc
[modify] https://crrev.com/328cc0544ca81f04fd4d053bb93ffa669a371943/services/device/bluetooth/bluetooth_system_unittest.cc
[modify] https://crrev.com/328cc0544ca81f04fd4d053bb93ffa669a371943/services/device/public/mojom/bluetooth_system.mojom

Project Member

Comment 2 by bugdroid1@chromium.org, Oct 22

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/9d6307e37a8a781c97e1ed8c2f4764bab78e0f82

commit 9d6307e37a8a781c97e1ed8c2f4764bab78e0f82
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Mon Oct 22 22:10:16 2018

bluetooth: Small test improvement

Changes two tests to reset the received events before continuing the
test. This makes it more consistent with other tests and makes it
clearer how the state changes at each point in the tests.

Bug: 896113
Change-Id: I06b963fa0cab0f0a1bf8bb72145711636c77ddae
Reviewed-on: https://chromium-review.googlesource.com/c/1292663
Reviewed-by: Ovidio Henriquez <odejesush@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#601747}
[modify] https://crrev.com/9d6307e37a8a781c97e1ed8c2f4764bab78e0f82/services/device/bluetooth/bluetooth_system_unittest.cc

Project Member

Comment 3 by bugdroid1@chromium.org, Oct 30

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/d11d38fcf6b927dbd5223f57671e7d64b2b1e1a5

commit d11d38fcf6b927dbd5223f57671e7d64b2b1e1a5
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Tue Oct 30 00:21:39 2018

bluetooth: Add test for the adapter being removed during SetPowered

Changes TestBluetoothAdapterClient::Properties to save Set callbacks if
there is no next response set. Just like in real devices, these
callbacks are run after the adapter gets removed.

Also adds a test to make sure that when the adapter gets removed during a
SetPowered call the state is correctly updated and there are no extra
State Changed events.

Bug: 896113
Change-Id: Iecc55cc2a8f4b2ff4d93fcacfd5e1a64095b2b7d
Reviewed-on: https://chromium-review.googlesource.com/c/1304033
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Reviewed-by: Ovidio Henriquez <odejesush@chromium.org>
Cr-Commit-Position: refs/heads/master@{#603700}
[modify] https://crrev.com/d11d38fcf6b927dbd5223f57671e7d64b2b1e1a5/services/device/bluetooth/BUILD.gn
[modify] https://crrev.com/d11d38fcf6b927dbd5223f57671e7d64b2b1e1a5/services/device/bluetooth/bluetooth_system_unittest.cc

Sign in to add a comment