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

Issue 870192 link

Starred by 1 user

Issue metadata

Status: Started
Owner:
Last visit > 30 days ago
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Feature


Sign in to add a comment

bluetooth: Add a new Bluetooth System interface that performs all the necessary OS operations

Project Member Reported by ortuno@chromium.org, Aug 2

Issue description

Summary: bluetooth: Add a new Bluetooth System interface that performs all the necessary OS operations (was: bluetooth: Add a new Bluetooth System interface that perform all the necessary OS operations)
Project Member

Comment 2 by bugdroid1@chromium.org, Sep 4

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

commit 990c4fe8bea343b534d34e1972b6ede8519a2d61
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Tue Sep 04 06:07:36 2018

bluetooth: Add mojom and stub impl for BluetoothSystem

Bluetooth System is the High level interface targeted towards UI level
components like Ash and chrome://settings that:
 _ Show the BT Radio state and allow users to change it.
 - Show a list of nearby, connected and paired BT Devices.
 - Start and stop BT scans.
 - Connect to and pair with BT devices.

Bug: 870192

Change-Id: Ifb6afaffc2d05e0718dcda70c0a0a23cffb68c1e
Reviewed-on: https://chromium-review.googlesource.com/1161716
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#588458}
[modify] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/BUILD.gn
[add] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/bluetooth/BUILD.gn
[add] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/bluetooth/bluetooth_system.cc
[add] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/bluetooth/bluetooth_system.h
[add] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/bluetooth/bluetooth_system_factory.cc
[add] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/bluetooth/bluetooth_system_factory.h
[add] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/bluetooth/bluetooth_system_unittest.cc
[modify] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/device_service.cc
[modify] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/device_service.h
[modify] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/manifest.json
[modify] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/public/mojom/BUILD.gn
[add] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/public/mojom/bluetooth_system.mojom
[modify] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/unittest_manifest.json

Project Member

Comment 3 by bugdroid1@chromium.org, Sep 4

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

commit 990c4fe8bea343b534d34e1972b6ede8519a2d61
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Tue Sep 04 06:07:36 2018

bluetooth: Add mojom and stub impl for BluetoothSystem

Bluetooth System is the High level interface targeted towards UI level
components like Ash and chrome://settings that:
 _ Show the BT Radio state and allow users to change it.
 - Show a list of nearby, connected and paired BT Devices.
 - Start and stop BT scans.
 - Connect to and pair with BT devices.

Bug: 870192

Change-Id: Ifb6afaffc2d05e0718dcda70c0a0a23cffb68c1e
Reviewed-on: https://chromium-review.googlesource.com/1161716
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#588458}
[modify] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/BUILD.gn
[add] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/bluetooth/BUILD.gn
[add] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/bluetooth/bluetooth_system.cc
[add] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/bluetooth/bluetooth_system.h
[add] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/bluetooth/bluetooth_system_factory.cc
[add] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/bluetooth/bluetooth_system_factory.h
[add] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/bluetooth/bluetooth_system_unittest.cc
[modify] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/device_service.cc
[modify] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/device_service.h
[modify] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/manifest.json
[modify] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/public/mojom/BUILD.gn
[add] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/public/mojom/bluetooth_system.mojom
[modify] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/unittest_manifest.json

Project Member

Comment 4 by bugdroid1@chromium.org, Sep 4

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

commit 990c4fe8bea343b534d34e1972b6ede8519a2d61
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Tue Sep 04 06:07:36 2018

bluetooth: Add mojom and stub impl for BluetoothSystem

Bluetooth System is the High level interface targeted towards UI level
components like Ash and chrome://settings that:
 _ Show the BT Radio state and allow users to change it.
 - Show a list of nearby, connected and paired BT Devices.
 - Start and stop BT scans.
 - Connect to and pair with BT devices.

Bug: 870192

Change-Id: Ifb6afaffc2d05e0718dcda70c0a0a23cffb68c1e
Reviewed-on: https://chromium-review.googlesource.com/1161716
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#588458}
[modify] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/BUILD.gn
[add] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/bluetooth/BUILD.gn
[add] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/bluetooth/bluetooth_system.cc
[add] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/bluetooth/bluetooth_system.h
[add] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/bluetooth/bluetooth_system_factory.cc
[add] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/bluetooth/bluetooth_system_factory.h
[add] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/bluetooth/bluetooth_system_unittest.cc
[modify] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/device_service.cc
[modify] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/device_service.h
[modify] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/manifest.json
[modify] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/public/mojom/BUILD.gn
[add] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/public/mojom/bluetooth_system.mojom
[modify] https://crrev.com/990c4fe8bea343b534d34e1972b6ede8519a2d61/services/device/unittest_manifest.json

Blockedon: 882346
Blockedon: 882771
Project Member

Comment 7 by bugdroid1@chromium.org, Sep 19

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

commit cac7f08ec06c014392ccef4518037aafdd1624e3
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Wed Sep 19 22:51:46 2018

bluetooth: Make BluetoothSystem ChromeOS specific

BluetoothSystem will only be implemented on Chrome OS.

Bug: 870192
Change-Id: I0a16a15ee6f15653d19d30d76a7d109235f34e86
Reviewed-on: https://chromium-review.googlesource.com/1233313
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#592586}
[modify] https://crrev.com/cac7f08ec06c014392ccef4518037aafdd1624e3/services/device/BUILD.gn
[modify] https://crrev.com/cac7f08ec06c014392ccef4518037aafdd1624e3/services/device/bluetooth/BUILD.gn
[modify] https://crrev.com/cac7f08ec06c014392ccef4518037aafdd1624e3/services/device/device_service.cc
[modify] https://crrev.com/cac7f08ec06c014392ccef4518037aafdd1624e3/services/device/device_service.h

Project Member

Comment 8 by bugdroid1@chromium.org, Oct 4

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

commit 837b3c2074fca77f66fda4c08d7c65a2b5b762ef
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Thu Oct 04 06:01:19 2018

bluetooth: Add a new BluetoothAdapterClient instance and use it for GetState

There are two parts to this change:

1. Create a new BluetoothAdapterClient instance. For this we add
   "alternate_bluetooth_adapter_client()" to the bundle of DBus clients.
   This new instance uses a separate DBus Connection through
   BluezDBusThreadManager. This ensures actions on one client won't
   affect the other client.

2. Implement BluetoothSystem::GetState using the new client.

Bug: 870192,  882771 
Change-Id: I9faa92e8234b14dd374a04b4c9e9acbcfd7e6201
Reviewed-on: https://chromium-review.googlesource.com/c/1215427
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
Reviewed-by: Dan Erat <derat@chromium.org>
Reviewed-by: Sam McNally <sammc@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#596520}
[modify] https://crrev.com/837b3c2074fca77f66fda4c08d7c65a2b5b762ef/device/bluetooth/dbus/bluetooth_dbus_client_bundle.cc
[modify] https://crrev.com/837b3c2074fca77f66fda4c08d7c65a2b5b762ef/device/bluetooth/dbus/bluetooth_dbus_client_bundle.h
[modify] https://crrev.com/837b3c2074fca77f66fda4c08d7c65a2b5b762ef/device/bluetooth/dbus/bluez_dbus_manager.cc
[modify] https://crrev.com/837b3c2074fca77f66fda4c08d7c65a2b5b762ef/device/bluetooth/dbus/bluez_dbus_manager.h
[modify] https://crrev.com/837b3c2074fca77f66fda4c08d7c65a2b5b762ef/services/device/bluetooth/BUILD.gn
[add] https://crrev.com/837b3c2074fca77f66fda4c08d7c65a2b5b762ef/services/device/bluetooth/DEPS
[modify] https://crrev.com/837b3c2074fca77f66fda4c08d7c65a2b5b762ef/services/device/bluetooth/bluetooth_system.cc
[modify] https://crrev.com/837b3c2074fca77f66fda4c08d7c65a2b5b762ef/services/device/bluetooth/bluetooth_system.h
[modify] https://crrev.com/837b3c2074fca77f66fda4c08d7c65a2b5b762ef/services/device/bluetooth/bluetooth_system_unittest.cc
[modify] https://crrev.com/837b3c2074fca77f66fda4c08d7c65a2b5b762ef/services/device/public/mojom/bluetooth_system.mojom

Project Member

Comment 9 by bugdroid1@chromium.org, Oct 4

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

commit 6d46cb2853ea7a30eb2752d01f851450e136d8f0
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Thu Oct 04 07:02:26 2018

bluetooth: Finish implementing GetState()

Use Adapter's power state for GetState().

Bug: 870192
Change-Id: I4c431fad09e540e8f20b21feb638ae6ba701f637
Reviewed-on: https://chromium-review.googlesource.com/c/1250581
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#596532}
[modify] https://crrev.com/6d46cb2853ea7a30eb2752d01f851450e136d8f0/services/device/bluetooth/bluetooth_system.cc
[modify] https://crrev.com/6d46cb2853ea7a30eb2752d01f851450e136d8f0/services/device/bluetooth/bluetooth_system_unittest.cc

Project Member

Comment 10 by bugdroid1@chromium.org, Oct 4

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

commit 40ceb08df809a852a986f97c4e5d23c475fdb060
Author: kylechar <kylechar@chromium.org>
Date: Thu Oct 04 15:42:28 2018

Revert "bluetooth: Finish implementing GetState()"

This reverts commit 6d46cb2853ea7a30eb2752d01f851450e136d8f0.

Reason for revert: Crash on startup.  https://crbug.com/892182 

Original change's description:
> bluetooth: Finish implementing GetState()
> 
> Use Adapter's power state for GetState().
> 
> Bug: 870192
> Change-Id: I4c431fad09e540e8f20b21feb638ae6ba701f637
> Reviewed-on: https://chromium-review.googlesource.com/c/1250581
> Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
> Reviewed-by: Reilly Grant <reillyg@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#596532}

TBR=reillyg@chromium.org,ortuno@chromium.org

Change-Id: Ib6da2c1e13a03a86d8daf88eba89ea53d8bd9e45
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 870192,  892182 
Reviewed-on: https://chromium-review.googlesource.com/c/1261918
Reviewed-by: kylechar <kylechar@chromium.org>
Commit-Queue: kylechar <kylechar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#596684}
[modify] https://crrev.com/40ceb08df809a852a986f97c4e5d23c475fdb060/services/device/bluetooth/bluetooth_system.cc
[modify] https://crrev.com/40ceb08df809a852a986f97c4e5d23c475fdb060/services/device/bluetooth/bluetooth_system_unittest.cc

Project Member

Comment 11 by bugdroid1@chromium.org, Oct 4

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

commit 467e19a62cd2826f933b18930e71d56d97ca7cd3
Author: kylechar <kylechar@chromium.org>
Date: Thu Oct 04 15:44:41 2018

Revert "bluetooth: Add a new BluetoothAdapterClient instance and use it for GetState"

This reverts commit 837b3c2074fca77f66fda4c08d7c65a2b5b762ef.

Reason for revert: Crash on startup.  https://crbug.com/892182 

Original change's description:
> bluetooth: Add a new BluetoothAdapterClient instance and use it for GetState
> 
> There are two parts to this change:
> 
> 1. Create a new BluetoothAdapterClient instance. For this we add
>    "alternate_bluetooth_adapter_client()" to the bundle of DBus clients.
>    This new instance uses a separate DBus Connection through
>    BluezDBusThreadManager. This ensures actions on one client won't
>    affect the other client.
> 
> 2. Implement BluetoothSystem::GetState using the new client.
> 
> Bug: 870192,  882771 
> Change-Id: I9faa92e8234b14dd374a04b4c9e9acbcfd7e6201
> Reviewed-on: https://chromium-review.googlesource.com/c/1215427
> Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
> Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
> Reviewed-by: Dan Erat <derat@chromium.org>
> Reviewed-by: Sam McNally <sammc@chromium.org>
> Reviewed-by: Reilly Grant <reillyg@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#596520}

TBR=derat@chromium.org,stevenjb@chromium.org,reillyg@chromium.org,sammc@chromium.org,ortuno@chromium.org,sonnysasaka@chromium.org

Change-Id: Icf5a244f163152ccc41d84f7ea43220afebae791
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 870192,  882771 ,  892182 
Reviewed-on: https://chromium-review.googlesource.com/c/1261878
Reviewed-by: kylechar <kylechar@chromium.org>
Commit-Queue: kylechar <kylechar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#596685}
[modify] https://crrev.com/467e19a62cd2826f933b18930e71d56d97ca7cd3/device/bluetooth/dbus/bluetooth_dbus_client_bundle.cc
[modify] https://crrev.com/467e19a62cd2826f933b18930e71d56d97ca7cd3/device/bluetooth/dbus/bluetooth_dbus_client_bundle.h
[modify] https://crrev.com/467e19a62cd2826f933b18930e71d56d97ca7cd3/device/bluetooth/dbus/bluez_dbus_manager.cc
[modify] https://crrev.com/467e19a62cd2826f933b18930e71d56d97ca7cd3/device/bluetooth/dbus/bluez_dbus_manager.h
[modify] https://crrev.com/467e19a62cd2826f933b18930e71d56d97ca7cd3/services/device/bluetooth/BUILD.gn
[delete] https://crrev.com/40ceb08df809a852a986f97c4e5d23c475fdb060/services/device/bluetooth/DEPS
[modify] https://crrev.com/467e19a62cd2826f933b18930e71d56d97ca7cd3/services/device/bluetooth/bluetooth_system.cc
[modify] https://crrev.com/467e19a62cd2826f933b18930e71d56d97ca7cd3/services/device/bluetooth/bluetooth_system.h
[modify] https://crrev.com/467e19a62cd2826f933b18930e71d56d97ca7cd3/services/device/bluetooth/bluetooth_system_unittest.cc
[modify] https://crrev.com/467e19a62cd2826f933b18930e71d56d97ca7cd3/services/device/public/mojom/bluetooth_system.mojom

Project Member

Comment 12 by bugdroid1@chromium.org, Oct 5

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

commit 8aa00e1b59237b66917fc8be06324c97958d3b88
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Fri Oct 05 03:09:15 2018

Reland "bluetooth: Add a new BluetoothAdapterClient instance and use it for GetState"

This is a reland of 837b3c2074fca77f66fda4c08d7c65a2b5b762ef

The original patch attempted to init the alternate dbus client on Linux where
there is no alternate bus connection. The latest patchset fixes this by
returning early if there is no alternate bus connection.

TBRing since it's a minor addition to the original patch.

Original change's description:
> bluetooth: Add a new BluetoothAdapterClient instance and use it for GetState
>
> There are two parts to this change:
>
> 1. Create a new BluetoothAdapterClient instance. For this we add
>    "alternate_bluetooth_adapter_client()" to the bundle of DBus clients.
>    This new instance uses a separate DBus Connection through
>    BluezDBusThreadManager. This ensures actions on one client won't
>    affect the other client.
>
> 2. Implement BluetoothSystem::GetState using the new client.
>
> Bug: 870192,  882771 
> Change-Id: I9faa92e8234b14dd374a04b4c9e9acbcfd7e6201
> Reviewed-on: https://chromium-review.googlesource.com/c/1215427
> Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
> Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
> Reviewed-by: Dan Erat <derat@chromium.org>
> Reviewed-by: Sam McNally <sammc@chromium.org>
> Reviewed-by: Reilly Grant <reillyg@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#596520}

TBR=stevenjb@chromium.org, derat@chromium.org, sammc@chromium.org, reillyg@chromium.org

Bug: 870192,  882771 
Change-Id: I0e92cc90f095c6049b2b967e46249e8488f71fcb
Reviewed-on: https://chromium-review.googlesource.com/c/1263217
Reviewed-by: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#596975}
[modify] https://crrev.com/8aa00e1b59237b66917fc8be06324c97958d3b88/device/bluetooth/dbus/bluetooth_dbus_client_bundle.cc
[modify] https://crrev.com/8aa00e1b59237b66917fc8be06324c97958d3b88/device/bluetooth/dbus/bluetooth_dbus_client_bundle.h
[modify] https://crrev.com/8aa00e1b59237b66917fc8be06324c97958d3b88/device/bluetooth/dbus/bluez_dbus_manager.cc
[modify] https://crrev.com/8aa00e1b59237b66917fc8be06324c97958d3b88/device/bluetooth/dbus/bluez_dbus_manager.h
[modify] https://crrev.com/8aa00e1b59237b66917fc8be06324c97958d3b88/services/device/bluetooth/BUILD.gn
[add] https://crrev.com/8aa00e1b59237b66917fc8be06324c97958d3b88/services/device/bluetooth/DEPS
[modify] https://crrev.com/8aa00e1b59237b66917fc8be06324c97958d3b88/services/device/bluetooth/bluetooth_system.cc
[modify] https://crrev.com/8aa00e1b59237b66917fc8be06324c97958d3b88/services/device/bluetooth/bluetooth_system.h
[modify] https://crrev.com/8aa00e1b59237b66917fc8be06324c97958d3b88/services/device/bluetooth/bluetooth_system_unittest.cc
[modify] https://crrev.com/8aa00e1b59237b66917fc8be06324c97958d3b88/services/device/public/mojom/bluetooth_system.mojom

Project Member

Comment 13 by bugdroid1@chromium.org, Oct 5

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

commit 9525c97843d5cfa932646b472cca18ec6494e011
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Fri Oct 05 03:32:57 2018

Revert "Reland "bluetooth: Add a new BluetoothAdapterClient instance and use it for GetState""

This reverts commit 8aa00e1b59237b66917fc8be06324c97958d3b88.

Reason for revert: Causes crash on shutdown:

Received signal 11 SEGV_MAPERR 000000000088
#0 0x7f228f7b5a3f base::debug::StackTrace::StackTrace()
#1 0x7f228f7b5521 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#2 0x7f22832c80c0 <unknown>
#3 0x7f228a01add1 std::__1::__tree<>::find<>()
#4 0x7f228a0294dc dbus::ObjectManager::UnregisterInterface()
#5 0x7f228a1978b3 bluez::BluetoothAdapterClientImpl::~BluetoothAdapterClientImpl()
#6 0x7f228a1a05b0 bluez::BluetoothDBusClientBundle::~BluetoothDBusClientBundle()
#7 0x7f228a1c808e bluez::BluezDBusManager::Shutdown()
#8 0x559074b4094e ChromeBrowserMainPartsLinux::PostDestroyThreads()


Original change's description:
> Reland "bluetooth: Add a new BluetoothAdapterClient instance and use it for GetState"
> 
> This is a reland of 837b3c2074fca77f66fda4c08d7c65a2b5b762ef
> 
> The original patch attempted to init the alternate dbus client on Linux where
> there is no alternate bus connection. The latest patchset fixes this by
> returning early if there is no alternate bus connection.
> 
> TBRing since it's a minor addition to the original patch.
> 
> Original change's description:
> > bluetooth: Add a new BluetoothAdapterClient instance and use it for GetState
> >
> > There are two parts to this change:
> >
> > 1. Create a new BluetoothAdapterClient instance. For this we add
> >    "alternate_bluetooth_adapter_client()" to the bundle of DBus clients.
> >    This new instance uses a separate DBus Connection through
> >    BluezDBusThreadManager. This ensures actions on one client won't
> >    affect the other client.
> >
> > 2. Implement BluetoothSystem::GetState using the new client.
> >
> > Bug: 870192,  882771 
> > Change-Id: I9faa92e8234b14dd374a04b4c9e9acbcfd7e6201
> > Reviewed-on: https://chromium-review.googlesource.com/c/1215427
> > Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
> > Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
> > Reviewed-by: Dan Erat <derat@chromium.org>
> > Reviewed-by: Sam McNally <sammc@chromium.org>
> > Reviewed-by: Reilly Grant <reillyg@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#596520}
> 
> TBR=stevenjb@chromium.org, derat@chromium.org, sammc@chromium.org, reillyg@chromium.org
> 
> Bug: 870192,  882771 
> Change-Id: I0e92cc90f095c6049b2b967e46249e8488f71fcb
> Reviewed-on: https://chromium-review.googlesource.com/c/1263217
> Reviewed-by: Giovanni Ortuño Urquidi <ortuno@chromium.org>
> Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#596975}

TBR=derat@chromium.org,stevenjb@chromium.org,reillyg@chromium.org,sammc@chromium.org,ortuno@chromium.org,sonnysasaka@chromium.org

Change-Id: I92bd726f551e48e0b2013d9e58f76e10b90196ec
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 870192,  882771 
Reviewed-on: https://chromium-review.googlesource.com/c/1263639
Reviewed-by: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#596981}
[modify] https://crrev.com/9525c97843d5cfa932646b472cca18ec6494e011/device/bluetooth/dbus/bluetooth_dbus_client_bundle.cc
[modify] https://crrev.com/9525c97843d5cfa932646b472cca18ec6494e011/device/bluetooth/dbus/bluetooth_dbus_client_bundle.h
[modify] https://crrev.com/9525c97843d5cfa932646b472cca18ec6494e011/device/bluetooth/dbus/bluez_dbus_manager.cc
[modify] https://crrev.com/9525c97843d5cfa932646b472cca18ec6494e011/device/bluetooth/dbus/bluez_dbus_manager.h
[modify] https://crrev.com/9525c97843d5cfa932646b472cca18ec6494e011/services/device/bluetooth/BUILD.gn
[delete] https://crrev.com/0fadde63ade9d82026102e27a1b7256a98fa9455/services/device/bluetooth/DEPS
[modify] https://crrev.com/9525c97843d5cfa932646b472cca18ec6494e011/services/device/bluetooth/bluetooth_system.cc
[modify] https://crrev.com/9525c97843d5cfa932646b472cca18ec6494e011/services/device/bluetooth/bluetooth_system.h
[modify] https://crrev.com/9525c97843d5cfa932646b472cca18ec6494e011/services/device/bluetooth/bluetooth_system_unittest.cc
[modify] https://crrev.com/9525c97843d5cfa932646b472cca18ec6494e011/services/device/public/mojom/bluetooth_system.mojom

Project Member

Comment 14 by bugdroid1@chromium.org, Oct 5

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

commit 40f128ac00336e9166a9ce26727a6ddb3a172c3c
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Fri Oct 05 05:42:44 2018

Reland "bluetooth: Add a new BluetoothAdapterClient instance and use it for GetState"

This is a reland of 837b3c2074fca77f66fda4c08d7c65a2b5b762ef

The original patch attempted to init the alternate dbus client on Linux where
there is no alternate bus connection. The latest patchset fixes this by
returning early if there is no alternate bus connection.

Additionally, BluetoothAdapterClientImpl assumed it was always initialized. This
caused a crash on Linux during shutdown. This latest patchset fixes this by
only cleaning up if the client has been initialized.

TBR'ing since it's a small change from the original CL.

Original change's description:
> bluetooth: Add a new BluetoothAdapterClient instance and use it for GetState
>
> There are two parts to this change:
>
> 1. Create a new BluetoothAdapterClient instance. For this we add
>    "alternate_bluetooth_adapter_client()" to the bundle of DBus clients.
>    This new instance uses a separate DBus Connection through
>    BluezDBusThreadManager. This ensures actions on one client won't
>    affect the other client.
>
> 2. Implement BluetoothSystem::GetState using the new client.
>
> Bug: 870192,  882771 
> Change-Id: I9faa92e8234b14dd374a04b4c9e9acbcfd7e6201
> Reviewed-on: https://chromium-review.googlesource.com/c/1215427
> Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
> Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
> Reviewed-by: Dan Erat <derat@chromium.org>
> Reviewed-by: Sam McNally <sammc@chromium.org>
> Reviewed-by: Reilly Grant <reillyg@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#596520}

TBR=derat@chromium.org,stevenjb@chromium.org,reillyg@chromium.org,sammc@chromium.org

Bug: 870192,  882771 
Change-Id: Ie089e30d297e8afd9ceb70c0e9a4af7600e633de
Reviewed-on: https://chromium-review.googlesource.com/c/1263640
Reviewed-by: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#597006}
[modify] https://crrev.com/40f128ac00336e9166a9ce26727a6ddb3a172c3c/device/bluetooth/dbus/bluetooth_adapter_client.cc
[modify] https://crrev.com/40f128ac00336e9166a9ce26727a6ddb3a172c3c/device/bluetooth/dbus/bluetooth_dbus_client_bundle.cc
[modify] https://crrev.com/40f128ac00336e9166a9ce26727a6ddb3a172c3c/device/bluetooth/dbus/bluetooth_dbus_client_bundle.h
[modify] https://crrev.com/40f128ac00336e9166a9ce26727a6ddb3a172c3c/device/bluetooth/dbus/bluez_dbus_manager.cc
[modify] https://crrev.com/40f128ac00336e9166a9ce26727a6ddb3a172c3c/device/bluetooth/dbus/bluez_dbus_manager.h
[modify] https://crrev.com/40f128ac00336e9166a9ce26727a6ddb3a172c3c/services/device/bluetooth/BUILD.gn
[add] https://crrev.com/40f128ac00336e9166a9ce26727a6ddb3a172c3c/services/device/bluetooth/DEPS
[modify] https://crrev.com/40f128ac00336e9166a9ce26727a6ddb3a172c3c/services/device/bluetooth/bluetooth_system.cc
[modify] https://crrev.com/40f128ac00336e9166a9ce26727a6ddb3a172c3c/services/device/bluetooth/bluetooth_system.h
[modify] https://crrev.com/40f128ac00336e9166a9ce26727a6ddb3a172c3c/services/device/bluetooth/bluetooth_system_unittest.cc
[modify] https://crrev.com/40f128ac00336e9166a9ce26727a6ddb3a172c3c/services/device/public/mojom/bluetooth_system.mojom

Project Member

Comment 15 by bugdroid1@chromium.org, Oct 8

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

commit ca85f4a31e71fe23d03b2f1072e385ad88c4fa11
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Mon Oct 08 01:43:32 2018

Reland "bluetooth: Finish implementing GetState()"

This is a reland of 6d46cb2853ea7a30eb2752d01f851450e136d8f0

The original patch got reverted because its parent was reverted. There
are no changes from the original CL.

Original change's description:
> bluetooth: Finish implementing GetState()
>
> Use Adapter's power state for GetState().
>
> Bug: 870192
> Change-Id: I4c431fad09e540e8f20b21feb638ae6ba701f637
> Reviewed-on: https://chromium-review.googlesource.com/c/1250581
> Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
> Reviewed-by: Reilly Grant <reillyg@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#596532}

TBR=reillyg@chromium.org

Bug: 870192
Change-Id: If4aa220d2c6799ef955a3568f1a32c8eac57b2ba
Reviewed-on: https://chromium-review.googlesource.com/c/1264099
Reviewed-by: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#597471}
[modify] https://crrev.com/ca85f4a31e71fe23d03b2f1072e385ad88c4fa11/services/device/bluetooth/bluetooth_system.cc
[modify] https://crrev.com/ca85f4a31e71fe23d03b2f1072e385ad88c4fa11/services/device/bluetooth/bluetooth_system_unittest.cc

Project Member

Comment 16 by bugdroid1@chromium.org, Oct 8

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

commit d0ebeb7ceca641e6b735c702fdd2fa82f9bb9182
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Mon Oct 08 04:20:51 2018

bluetooth: Add support for multiple adapters to BluetoothSystem

Adds the concept of an "active adapter". BluetoothSystem will use
the "active adapter" to perform all its operations. If the adapter gets
removed, BluetoothSystem will pick another adapter as the "active
adapter". If there are no adapters, the state changes to Unavailable.

Bug: 870192
Change-Id: Ice2cfc555d2b2c40d99d382db63b7794aaff60e3
Reviewed-on: https://chromium-review.googlesource.com/c/1256395
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#597481}
[modify] https://crrev.com/d0ebeb7ceca641e6b735c702fdd2fa82f9bb9182/services/device/bluetooth/bluetooth_system.cc
[modify] https://crrev.com/d0ebeb7ceca641e6b735c702fdd2fa82f9bb9182/services/device/bluetooth/bluetooth_system.h
[modify] https://crrev.com/d0ebeb7ceca641e6b735c702fdd2fa82f9bb9182/services/device/bluetooth/bluetooth_system_unittest.cc

Project Member

Comment 17 by bugdroid1@chromium.org, Oct 8

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

commit 23f9fd0c8b9b4f9009f28b4ba7cf3a272bc0f52c
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Mon Oct 08 23:34:00 2018

bluetooth: Change AdapterAdded and AdapterRemoved implementations

Before this patch, the BluetoothSystem assumed the that the adapter
and its properties would no longer be exposed once AdapterRemoved was
called. But in reality, when BlueZ calls into AdapterRemoved, the
removed adapter and its properties are still accessible through
GetAdapters() and GetProperties().

This CL changes BluetoothSystem to no longer use GetAdapters() when
an adapter is removed.

Also changes active_adapter_ to use base::Optional.

Bug: 870192
Change-Id: I9d4e708b8b43adba86de2cb2a65d763a3e60f35d
Reviewed-on: https://chromium-review.googlesource.com/c/1264141
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#597728}
[modify] https://crrev.com/23f9fd0c8b9b4f9009f28b4ba7cf3a272bc0f52c/services/device/bluetooth/bluetooth_system.cc
[modify] https://crrev.com/23f9fd0c8b9b4f9009f28b4ba7cf3a272bc0f52c/services/device/bluetooth/bluetooth_system.h
[modify] https://crrev.com/23f9fd0c8b9b4f9009f28b4ba7cf3a272bc0f52c/services/device/bluetooth/bluetooth_system_unittest.cc

Project Member

Comment 18 by bugdroid1@chromium.org, Oct 9

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

commit df7ba195913732e773ac78b838f5226aa094866f
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Tue Oct 09 06:06:58 2018

bluetooth: Implement BluetoothSystemClient::OnStateChanged

OnStateChanged is called when the state changes due to:

- An active adapter being removed or added
- Power state of the active adapter changing

Bug: 870192
Change-Id: I5063653e96588f4861320ecab1bbc1f14134dc08
Reviewed-on: https://chromium-review.googlesource.com/c/1267915
Reviewed-by: Dominick Ng <dominickn@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#597813}
[modify] https://crrev.com/df7ba195913732e773ac78b838f5226aa094866f/services/device/bluetooth/bluetooth_system.cc
[modify] https://crrev.com/df7ba195913732e773ac78b838f5226aa094866f/services/device/bluetooth/bluetooth_system.h
[modify] https://crrev.com/df7ba195913732e773ac78b838f5226aa094866f/services/device/bluetooth/bluetooth_system_unittest.cc
[modify] https://crrev.com/df7ba195913732e773ac78b838f5226aa094866f/services/device/public/mojom/bluetooth_system.mojom

Project Member

Comment 19 by bugdroid1@chromium.org, Oct 16

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

commit d08edc74a2e80910b7939fad57513f51ba5a9966
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Tue Oct 16 01:55:54 2018

bluetooth: Wrap GetState to make it easier to use

Currently to use GetState we have to create a RunLoop, call GetState
with a callback that saves the result in a class variable, run the
loop and then access the class variable to get the result.

This CL attemps to simplify this by wrapping GetState into a function
that waits for the call to respond and returns the result directly.

Bug: 870192
Change-Id: I9d8d2dfb654443f99d56fe6e676efe9bfb8d0717
Reviewed-on: https://chromium-review.googlesource.com/c/1278464
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Reviewed-by: Ken Rockot <rockot@chromium.org>
Cr-Commit-Position: refs/heads/master@{#599819}
[modify] https://crrev.com/d08edc74a2e80910b7939fad57513f51ba5a9966/services/device/bluetooth/bluetooth_system_unittest.cc

Project Member

Comment 20 by bugdroid1@chromium.org, Oct 16

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

commit 07086b32c25cbe8af2827141a7b986c5025ab342
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Tue Oct 16 23:14:12 2018

bluetooth: Add owners files for //services/device/bluetooth

Bug: 870192
Change-Id: I66cbf722d8e5443e6c606b05a32a8ace3d45f63c
Reviewed-on: https://chromium-review.googlesource.com/c/1282765
Reviewed-by: Doug Turner <dougt@chromium.org>
Reviewed-by: Ken Rockot <rockot@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#600176}
[add] https://crrev.com/07086b32c25cbe8af2827141a7b986c5025ab342/services/device/bluetooth/OWNERS

Blockedon: 896113
Project Member

Comment 22 by bugdroid1@chromium.org, Oct 18

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

commit e0e38ce59db710f56d2a927855d945ce1ae3c168
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Thu Oct 18 01:43:45 2018

bluetooth: Initial implementation of BluetoothSystem::SetPowered.

The implementation just forwards the call to BlueZ. Future iterations
will support saving the new state into a user pref and concurrent calls.

Bug: 870192
Change-Id: I1dc1ebec9a58378ed8a4b87f31027c76a2a03323
Reviewed-on: https://chromium-review.googlesource.com/c/1280066
Reviewed-by: Yoshiki Iguchi <yoshiki@chromium.org>
Reviewed-by: Sam McNally <sammc@chromium.org>
Reviewed-by: Doug Turner <dougt@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#600631}
[modify] https://crrev.com/e0e38ce59db710f56d2a927855d945ce1ae3c168/ash/system/bluetooth/tray_bluetooth_helper_experimental.cc
[modify] https://crrev.com/e0e38ce59db710f56d2a927855d945ce1ae3c168/services/device/bluetooth/bluetooth_system.cc
[modify] https://crrev.com/e0e38ce59db710f56d2a927855d945ce1ae3c168/services/device/bluetooth/bluetooth_system.h
[modify] https://crrev.com/e0e38ce59db710f56d2a927855d945ce1ae3c168/services/device/bluetooth/bluetooth_system_unittest.cc
[modify] https://crrev.com/e0e38ce59db710f56d2a927855d945ce1ae3c168/services/device/public/mojom/bluetooth_system.mojom

Project Member

Comment 23 by bugdroid1@chromium.org, Oct 22

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

commit 87a133daf54d5eea0661c9541836337615da971f
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Mon Oct 22 23:03:40 2018

bluetooth: First iteration of GetScanState()

Implements GetScanState() by directly querying the state from the
`active_adapter_`. Follow up CLs will add the ability to change the
ScanState and listen to changes.

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

Blockedon: 897996
Project Member

Comment 25 by bugdroid1@chromium.org, Oct 25

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

commit d8156b234f1a2f18205160b1657cda188126de35
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Thu Oct 25 03:33:18 2018

bluetooth: Implement OnScanStateChanged

OnScanStateChanged is called whenever the "discovering" property of the
active adapter changes.

Bug: 870192
Change-Id: I0e00c33a0e5446850355f9bce32edfb297551b45
Reviewed-on: https://chromium-review.googlesource.com/c/1293090
Reviewed-by: Tetsui Ohkubo <tetsui@chromium.org>
Reviewed-by: Ovidio Henriquez <odejesush@chromium.org>
Reviewed-by: Dominick Ng <dominickn@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#602598}
[modify] https://crrev.com/d8156b234f1a2f18205160b1657cda188126de35/ash/system/bluetooth/tray_bluetooth_helper_experimental.cc
[modify] https://crrev.com/d8156b234f1a2f18205160b1657cda188126de35/ash/system/bluetooth/tray_bluetooth_helper_experimental.h
[modify] https://crrev.com/d8156b234f1a2f18205160b1657cda188126de35/services/device/bluetooth/bluetooth_system.cc
[modify] https://crrev.com/d8156b234f1a2f18205160b1657cda188126de35/services/device/bluetooth/bluetooth_system.h
[modify] https://crrev.com/d8156b234f1a2f18205160b1657cda188126de35/services/device/bluetooth/bluetooth_system_unittest.cc
[modify] https://crrev.com/d8156b234f1a2f18205160b1657cda188126de35/services/device/public/mojom/bluetooth_system.mojom

Labels: Hotlist-ConOps-CrOS
Project Member

Comment 27 by bugdroid1@chromium.org, Oct 30

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

commit c9a6360ca61b4ec20f12ba91a633df1b2d014ebe
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Tue Oct 30 00:09:26 2018

bluetooth: Check the correct value was set when powering on/off

Part of a bigger refactor to change how tests work. Currently tests
perform the following steps:

1. Set the next response to a BlueZ method call
2. Call a method that will call the BlueZ method
3. Check that the BlueZ method was called the right number of times
4. Apply the values that were passed to the BlueZ method

With this approach, we have no control over when BlueZ replies and
we don't know what values were passed to BlueZ until after we apply
them.

This CL address the second problem by exposing a GetSetValueForTesting
method in dbus::Property and adding a GetLastSetPoweredValue() method
to tests that use GetSetValueForTesting to test that the BlueZ method
was called with the right value. Now that we don't need to apply the
`set_value` to know what it was, we can remove
SimulateSetPoweredCompleted.

A follow up CL will address the first problem. In the end tests should
perform the following steps:

1. Call a method that will call a BlueZ method
2. Check that the BlueZ method was called the right number of times
3. Check that the BlueZ method was called with the right value
4. Simulate the BlueZ method replying

An added benefit of this approach is that we can simulate other
operations, like the adapter getting removed, between steps 1.
and 4., something that happens often in real devices.

Bug: 870192
Change-Id: I0c2cfc90a84d6d79b158804264c0e93664310a08
Reviewed-on: https://chromium-review.googlesource.com/c/1298818
Reviewed-by: Ryo Hashimoto <hashimoto@chromium.org>
Reviewed-by: Ovidio Henriquez <odejesush@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#603697}
[modify] https://crrev.com/c9a6360ca61b4ec20f12ba91a633df1b2d014ebe/dbus/property.h
[modify] https://crrev.com/c9a6360ca61b4ec20f12ba91a633df1b2d014ebe/services/device/bluetooth/bluetooth_system_unittest.cc

Project Member

Comment 28 by bugdroid1@chromium.org, Oct 30

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

commit 91a652752b104578c7ac5ad760b7f03664bdac34
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Tue Oct 30 21:48:44 2018

bluetooth: Refactor DBus clients to use CallMethodWithErrorResponse

Currently Bluetooth DBus clients use CallMethodWithErrorCallback which
takes two callbacks one for success and one for failure.

This patterns is hard to use for clients that implement a Mojo
interface for example BluetoothSystem, so this CL deprecates the methods
that take two callbacks and introduces one that takes a single callback.

BluetoothSystem will soon replace all other clients of these DBus
clients so it makes sense to move away from the two callbacks pattern and
to the single callback pattern which BluetoothSystem can more easily
use.

Bug: 870192
Change-Id: I703a8b8ed277bf94de6adbef6cb954ac66f2b602
Reviewed-on: https://chromium-review.googlesource.com/c/1293292
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#604026}
[modify] https://crrev.com/91a652752b104578c7ac5ad760b7f03664bdac34/device/bluetooth/dbus/bluetooth_adapter_client.cc
[modify] https://crrev.com/91a652752b104578c7ac5ad760b7f03664bdac34/device/bluetooth/dbus/bluetooth_adapter_client.h
[modify] https://crrev.com/91a652752b104578c7ac5ad760b7f03664bdac34/device/bluetooth/dbus/fake_bluetooth_adapter_client.cc
[modify] https://crrev.com/91a652752b104578c7ac5ad760b7f03664bdac34/device/bluetooth/dbus/fake_bluetooth_adapter_client.h
[modify] https://crrev.com/91a652752b104578c7ac5ad760b7f03664bdac34/services/device/bluetooth/bluetooth_system_unittest.cc

Project Member

Comment 29 by bugdroid1@chromium.org, Oct 31

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

commit e83f2c38bf844f355d0f6e2c27e140703b3018a0
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Wed Oct 31 03:32:13 2018

bluetooth: First iteration of StartScan

StartScan just send the command directly to the active adapter.
Future iterations will cause the state to change to kTransitioning, and
support concurrent calls.

Bug: 870192
Change-Id: I54da3c6026d474a9e70bc744bd03dfde1a3e766e
Reviewed-on: https://chromium-review.googlesource.com/c/1295609
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Reviewed-by: Tetsui Ohkubo <tetsui@chromium.org>
Reviewed-by: Dominick Ng <dominickn@chromium.org>
Reviewed-by: Ovidio Henriquez <odejesush@chromium.org>
Cr-Commit-Position: refs/heads/master@{#604137}
[modify] https://crrev.com/e83f2c38bf844f355d0f6e2c27e140703b3018a0/ash/system/bluetooth/tray_bluetooth_helper_experimental.cc
[modify] https://crrev.com/e83f2c38bf844f355d0f6e2c27e140703b3018a0/ash/system/bluetooth/tray_bluetooth_helper_experimental.h
[modify] https://crrev.com/e83f2c38bf844f355d0f6e2c27e140703b3018a0/services/device/bluetooth/bluetooth_system.cc
[modify] https://crrev.com/e83f2c38bf844f355d0f6e2c27e140703b3018a0/services/device/bluetooth/bluetooth_system.h
[modify] https://crrev.com/e83f2c38bf844f355d0f6e2c27e140703b3018a0/services/device/bluetooth/bluetooth_system_unittest.cc
[modify] https://crrev.com/e83f2c38bf844f355d0f6e2c27e140703b3018a0/services/device/public/mojom/bluetooth_system.mojom

Project Member

Comment 30 by bugdroid1@chromium.org, Oct 31

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

commit 922d203dc6ddd3ef44e5ca458499a2a56cc113cd
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Wed Oct 31 21:54:26 2018

bluetooth: First iteration of StopScan

StopScan just sends the command directly to the active adapter.
Future iterations will cause the state to change to kTransitioning,
and support concurrent calls.

Bug: 870192
Change-Id: I84e57147e7b1c82f3137841d615d7250bfac4cb9
Reviewed-on: https://chromium-review.googlesource.com/c/1295612
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Reviewed-by: Tetsui Ohkubo <tetsui@chromium.org>
Reviewed-by: Dominick Ng <dominickn@chromium.org>
Reviewed-by: Ovidio Henriquez <odejesush@chromium.org>
Cr-Commit-Position: refs/heads/master@{#604383}
[modify] https://crrev.com/922d203dc6ddd3ef44e5ca458499a2a56cc113cd/ash/system/bluetooth/tray_bluetooth_helper_experimental.cc
[modify] https://crrev.com/922d203dc6ddd3ef44e5ca458499a2a56cc113cd/device/bluetooth/bluez/bluetooth_bluez_unittest.cc
[modify] https://crrev.com/922d203dc6ddd3ef44e5ca458499a2a56cc113cd/device/bluetooth/dbus/bluetooth_adapter_client.cc
[modify] https://crrev.com/922d203dc6ddd3ef44e5ca458499a2a56cc113cd/device/bluetooth/dbus/bluetooth_adapter_client.h
[modify] https://crrev.com/922d203dc6ddd3ef44e5ca458499a2a56cc113cd/device/bluetooth/dbus/fake_bluetooth_adapter_client.cc
[modify] https://crrev.com/922d203dc6ddd3ef44e5ca458499a2a56cc113cd/device/bluetooth/dbus/fake_bluetooth_adapter_client.h
[modify] https://crrev.com/922d203dc6ddd3ef44e5ca458499a2a56cc113cd/services/device/bluetooth/bluetooth_system.cc
[modify] https://crrev.com/922d203dc6ddd3ef44e5ca458499a2a56cc113cd/services/device/bluetooth/bluetooth_system.h
[modify] https://crrev.com/922d203dc6ddd3ef44e5ca458499a2a56cc113cd/services/device/bluetooth/bluetooth_system_unittest.cc
[modify] https://crrev.com/922d203dc6ddd3ef44e5ca458499a2a56cc113cd/services/device/public/mojom/bluetooth_system.mojom

Project Member

Comment 31 by bugdroid1@chromium.org, Nov 19

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

commit 88668ea04da270c382eccae000527b4cdaa16a00
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Mon Nov 19 08:15:49 2018

bluetooth: Make "radio" casing consistent

Un-capitalizes all instances of "radio" to make them consistent.

TBR=dominickn@chromium.org

Bug: 870192
Change-Id: Ibf38e8eae85d2ae05a2f82788193fec880f6a46a
Reviewed-on: https://chromium-review.googlesource.com/c/1341773
Reviewed-by: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609202}
[modify] https://crrev.com/88668ea04da270c382eccae000527b4cdaa16a00/services/device/public/mojom/bluetooth_system.mojom

Blockedon: 908288
Project Member

Comment 33 by bugdroid1@chromium.org, Nov 30

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

commit 0a3e48db75da910701b910bfe9aa90d6e9b1077f
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Fri Nov 30 02:06:44 2018

bluetooth: Use an array instead of a string for the address

Use a array<uint8, 6> in the BluetoothSystem mojom and
std::array<uint8_t, 6> in the C++ Bindings.

Bug: 870192
Change-Id: I3467a770646b9ea2587a8cbc656c2ff510e0149c
Reviewed-on: https://chromium-review.googlesource.com/c/1341291
Reviewed-by: Ken Rockot <rockot@google.com>
Reviewed-by: Tetsui Ohkubo <tetsui@chromium.org>
Reviewed-by: Sam McNally <sammc@chromium.org>
Reviewed-by: Ovidio Henriquez <odejesush@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612516}
[modify] https://crrev.com/0a3e48db75da910701b910bfe9aa90d6e9b1077f/ash/system/bluetooth/bluetooth_detailed_view.cc
[modify] https://crrev.com/0a3e48db75da910701b910bfe9aa90d6e9b1077f/ash/system/bluetooth/bluetooth_detailed_view.h
[modify] https://crrev.com/0a3e48db75da910701b910bfe9aa90d6e9b1077f/ash/system/bluetooth/tray_bluetooth_helper.h
[modify] https://crrev.com/0a3e48db75da910701b910bfe9aa90d6e9b1077f/ash/system/bluetooth/tray_bluetooth_helper_experimental.cc
[modify] https://crrev.com/0a3e48db75da910701b910bfe9aa90d6e9b1077f/ash/system/bluetooth/tray_bluetooth_helper_experimental.h
[modify] https://crrev.com/0a3e48db75da910701b910bfe9aa90d6e9b1077f/ash/system/bluetooth/tray_bluetooth_helper_legacy.cc
[modify] https://crrev.com/0a3e48db75da910701b910bfe9aa90d6e9b1077f/ash/system/bluetooth/tray_bluetooth_helper_legacy.h
[modify] https://crrev.com/0a3e48db75da910701b910bfe9aa90d6e9b1077f/ash/system/bluetooth/tray_bluetooth_helper_legacy_unittest.cc
[modify] https://crrev.com/0a3e48db75da910701b910bfe9aa90d6e9b1077f/ash/system/bluetooth/unified_bluetooth_detailed_view_controller.cc
[add] https://crrev.com/0a3e48db75da910701b910bfe9aa90d6e9b1077f/services/device/public/cpp/bluetooth/OWNERS
[add] https://crrev.com/0a3e48db75da910701b910bfe9aa90d6e9b1077f/services/device/public/cpp/bluetooth/bluetooth_system_mojom_traits.cc
[add] https://crrev.com/0a3e48db75da910701b910bfe9aa90d6e9b1077f/services/device/public/cpp/bluetooth/bluetooth_system_mojom_traits.h
[modify] https://crrev.com/0a3e48db75da910701b910bfe9aa90d6e9b1077f/services/device/public/cpp/bluetooth/bluetooth_utils.cc
[modify] https://crrev.com/0a3e48db75da910701b910bfe9aa90d6e9b1077f/services/device/public/cpp/bluetooth/bluetooth_utils.h
[modify] https://crrev.com/0a3e48db75da910701b910bfe9aa90d6e9b1077f/services/device/public/cpp/bluetooth/bluetooth_utils_unittest.cc
[modify] https://crrev.com/0a3e48db75da910701b910bfe9aa90d6e9b1077f/services/device/public/mojom/bluetooth_system.mojom
[add] https://crrev.com/0a3e48db75da910701b910bfe9aa90d6e9b1077f/services/device/public/mojom/bluetooth_system.typemap
[modify] https://crrev.com/0a3e48db75da910701b910bfe9aa90d6e9b1077f/services/device/public/mojom/typemaps.gni

Project Member

Comment 34 by bugdroid1@chromium.org, Dec 3

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

commit 32a2d73981c3c104fb121dfd2282f027ee694333
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Mon Dec 03 22:15:02 2018

bluetooth: Call AdapterPropertyChanged before AdapterAdded

On real devices, AdapterPropertyChanged is called for each property in
the adapter before AdapterAdded is called. During this, the adapter
should be included when returning GetAdapter and all its properties should
be accessible (though they will be empty).

Changes TestBluetoothAdapterClient to match this behavior but instead of
calling AdapterPropertyChanged for all properties, we call it for the two
that are used in tests "Powered" and "Discovering".

Bug: 870192
Change-Id: I501cfb8ad2665aee27314188e5a7f667e2209ebf
Reviewed-on: https://chromium-review.googlesource.com/c/1358101
Reviewed-by: Ovidio Henriquez <odejesush@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#613285}
[modify] https://crrev.com/32a2d73981c3c104fb121dfd2282f027ee694333/services/device/bluetooth/bluetooth_system.cc
[modify] https://crrev.com/32a2d73981c3c104fb121dfd2282f027ee694333/services/device/bluetooth/bluetooth_system_unittest.cc

Project Member

Comment 35 by bugdroid1@chromium.org, Dec 3

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

commit 9fbf071f1cb3cabb756127ec47c925d277c42a0a
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Mon Dec 03 22:56:08 2018

bluetooth: Make the object path an optional argument for Simulate* methods

This make it easier to write tests while still maintaining the
flexibility of the fakes.

Also gives more descriptive names to the adapter objects paths. This
makes the adapter object paths easier to distinguish from future device,
service, characteristic, and descriptor object paths.

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

Project Member

Comment 36 by bugdroid1@chromium.org, Dec 4

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

commit 0a4fe769ca5f9253698d755f65d538b4190fea34
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Tue Dec 04 21:58:30 2018

bluetooth: Add an alternate BluetoothDeviceClient

Boilerplate to add an alternate BluetoothDeviceClient that will be used
by BluetoothSystem.

Split-off from https://crrev.com/c/1359834 to make it eaiser to review.

Bug: 870192
Change-Id: I034eee1a2d6e13226438c9eba6b1a4527eea9f67
Reviewed-on: https://chromium-review.googlesource.com/c/1360037
Reviewed-by: Sonny Sasaka <sonnysasaka@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#613712}
[modify] https://crrev.com/0a4fe769ca5f9253698d755f65d538b4190fea34/device/bluetooth/dbus/bluetooth_dbus_client_bundle.cc
[modify] https://crrev.com/0a4fe769ca5f9253698d755f65d538b4190fea34/device/bluetooth/dbus/bluetooth_dbus_client_bundle.h
[modify] https://crrev.com/0a4fe769ca5f9253698d755f65d538b4190fea34/device/bluetooth/dbus/bluez_dbus_manager.cc
[modify] https://crrev.com/0a4fe769ca5f9253698d755f65d538b4190fea34/device/bluetooth/dbus/bluez_dbus_manager.h
[modify] https://crrev.com/0a4fe769ca5f9253698d755f65d538b4190fea34/services/device/bluetooth/bluetooth_system_unittest.cc

Project Member

Comment 37 by bugdroid1@chromium.org, Dec 5

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

commit 16b2f901e68f0711ffc4b9933922ba16525c5ea8
Author: Alexis Hétu <sugoi@chromium.org>
Date: Wed Dec 05 15:10:22 2018

Revert "bluetooth: Add an alternate BluetoothDeviceClient"

This reverts commit 0a4fe769ca5f9253698d755f65d538b4190fea34.

Reason for revert: Causes crashes on the following bot:
https://ci.chromium.org/p/chromium/builders/luci.chromium.ci/Linux%20FYI%20Release%20%28Intel%20HD%20630%29

Original change's description:
> bluetooth: Add an alternate BluetoothDeviceClient
> 
> Boilerplate to add an alternate BluetoothDeviceClient that will be used
> by BluetoothSystem.
> 
> Split-off from https://crrev.com/c/1359834 to make it eaiser to review.
> 
> Bug: 870192
> Change-Id: I034eee1a2d6e13226438c9eba6b1a4527eea9f67
> Reviewed-on: https://chromium-review.googlesource.com/c/1360037
> Reviewed-by: Sonny Sasaka <sonnysasaka@chromium.org>
> Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#613712}

TBR=ortuno@chromium.org,sonnysasaka@chromium.org

Change-Id: I77da3a4ed4997fe1f5d0b8937578386a5bd1e351
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 870192
Reviewed-on: https://chromium-review.googlesource.com/c/1363432
Reviewed-by: Alexis Hétu <sugoi@chromium.org>
Commit-Queue: Alexis Hétu <sugoi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#613968}
[modify] https://crrev.com/16b2f901e68f0711ffc4b9933922ba16525c5ea8/device/bluetooth/dbus/bluetooth_dbus_client_bundle.cc
[modify] https://crrev.com/16b2f901e68f0711ffc4b9933922ba16525c5ea8/device/bluetooth/dbus/bluetooth_dbus_client_bundle.h
[modify] https://crrev.com/16b2f901e68f0711ffc4b9933922ba16525c5ea8/device/bluetooth/dbus/bluez_dbus_manager.cc
[modify] https://crrev.com/16b2f901e68f0711ffc4b9933922ba16525c5ea8/device/bluetooth/dbus/bluez_dbus_manager.h
[modify] https://crrev.com/16b2f901e68f0711ffc4b9933922ba16525c5ea8/services/device/bluetooth/bluetooth_system_unittest.cc

Project Member

Comment 38 by bugdroid1@chromium.org, Dec 6

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

commit f31bdc3275791d3308f75cc90cd783246bc786c8
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Thu Dec 06 00:52:15 2018

Reland "bluetooth: Add an alternate BluetoothDeviceClient"

This is a reland of 0a4fe769ca5f9253698d755f65d538b4190fea34

The original CL was reverted because it was causing a crash on Linux.
Before this fix, we assumed that object_manger_ would always be present.
This is not true on Linux, where the BluetoothDeviceClient is created
but not Init'ed. This reland fixes the issue by first checking if
object_manager_ is present.

https://ci.chromium.org/p/chromium/builders/luci.chromium.ci/Linux%20FYI%20Release%20%28Intel%20HD%20630%29/7477

Original change's description:
> bluetooth: Add an alternate BluetoothDeviceClient
>
> Boilerplate to add an alternate BluetoothDeviceClient that will be used
> by BluetoothSystem.
>
> Split-off from https://crrev.com/c/1359834 to make it eaiser to review.
>
> Bug: 870192
> Change-Id: I034eee1a2d6e13226438c9eba6b1a4527eea9f67
> Reviewed-on: https://chromium-review.googlesource.com/c/1360037
> Reviewed-by: Sonny Sasaka <sonnysasaka@chromium.org>
> Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#613712}

TBR=sonnysasaka@chromium.org

Bug: 870192
Change-Id: I068b04ca4e17fa1b5f724767dd8f42e560f84836
Reviewed-on: https://chromium-review.googlesource.com/c/1363733
Reviewed-by: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#614204}
[modify] https://crrev.com/f31bdc3275791d3308f75cc90cd783246bc786c8/device/bluetooth/dbus/bluetooth_dbus_client_bundle.cc
[modify] https://crrev.com/f31bdc3275791d3308f75cc90cd783246bc786c8/device/bluetooth/dbus/bluetooth_dbus_client_bundle.h
[modify] https://crrev.com/f31bdc3275791d3308f75cc90cd783246bc786c8/device/bluetooth/dbus/bluetooth_device_client.cc
[modify] https://crrev.com/f31bdc3275791d3308f75cc90cd783246bc786c8/device/bluetooth/dbus/bluez_dbus_manager.cc
[modify] https://crrev.com/f31bdc3275791d3308f75cc90cd783246bc786c8/device/bluetooth/dbus/bluez_dbus_manager.h
[modify] https://crrev.com/f31bdc3275791d3308f75cc90cd783246bc786c8/services/device/bluetooth/bluetooth_system_unittest.cc

Project Member

Comment 39 by bugdroid1@chromium.org, Dec 12

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

commit e0fa0d30459536700e350b7ef153dbd1152f15a6
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Wed Dec 12 01:38:25 2018

bluetooth: Implement GetAvailableDevices

GetAvailableDevices returns devices we consider to be available i.e.
devices we're recently seen, paired devices, and connected devices.

Bug: 870192
Change-Id: I0076003ee9b47e9d828c30c4aca6caf6200896ec
Reviewed-on: https://chromium-review.googlesource.com/c/1359834
Reviewed-by: Tetsui Ohkubo <tetsui@chromium.org>
Reviewed-by: Dominick Ng <dominickn@chromium.org>
Reviewed-by: Sonny Sasaka <sonnysasaka@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#615755}
[modify] https://crrev.com/e0fa0d30459536700e350b7ef153dbd1152f15a6/ash/system/bluetooth/tray_bluetooth_helper_experimental.cc
[modify] https://crrev.com/e0fa0d30459536700e350b7ef153dbd1152f15a6/services/device/bluetooth/bluetooth_system.cc
[modify] https://crrev.com/e0fa0d30459536700e350b7ef153dbd1152f15a6/services/device/bluetooth/bluetooth_system.h
[modify] https://crrev.com/e0fa0d30459536700e350b7ef153dbd1152f15a6/services/device/bluetooth/bluetooth_system_unittest.cc
[modify] https://crrev.com/e0fa0d30459536700e350b7ef153dbd1152f15a6/services/device/public/mojom/bluetooth_system.mojom

Sign in to add a comment