| Index: chrome/browser/resources/bluetooth_internals/adapter_broker.js
|
| diff --git a/chrome/browser/resources/bluetooth_internals/adapter_broker.js b/chrome/browser/resources/bluetooth_internals/adapter_broker.js
|
| index c17c89fe2a4806ce63a0155d4f5fba024ef10c33..6e3be48e13e60dbe8f80004357a8ca7ec545544b 100644
|
| --- a/chrome/browser/resources/bluetooth_internals/adapter_broker.js
|
| +++ b/chrome/browser/resources/bluetooth_internals/adapter_broker.js
|
| @@ -27,6 +27,22 @@ cr.define('adapter_broker', function() {
|
| __proto__: cr.EventTarget.prototype,
|
|
|
| /**
|
| + * Creates a GATT connection to the device with |address|.
|
| + * @param {string} address
|
| + * @return {Promise<interfaces.BluetoothDevice.Device.proxyClass>}
|
| + */
|
| + connectToDevice: function(address) {
|
| + return this.adapter_.connectToDevice(address).then(function(response) {
|
| + if (response.device) {
|
| + response.device = interfaces.Connection.bindHandleToProxy(
|
| + response.device,
|
| + interfaces.BluetoothDevice.Device);
|
| + }
|
| + return response;
|
| + });
|
| + },
|
| +
|
| + /**
|
| * Sets client of Adapter service.
|
| * @param {interfaces.BluetoothAdapter.AdapterClient} adapterClient
|
| */
|
|
|