| Index: content/browser/bluetooth/bluetooth_dispatcher_host.cc
|
| diff --git a/content/browser/bluetooth/bluetooth_dispatcher_host.cc b/content/browser/bluetooth/bluetooth_dispatcher_host.cc
|
| index decbede43c15dfcb8ab6af0e74e5d6360fa158d9..6e398e981c8d36ab3b523c7378eb8a38985a9c19 100644
|
| --- a/content/browser/bluetooth/bluetooth_dispatcher_host.cc
|
| +++ b/content/browser/bluetooth/bluetooth_dispatcher_host.cc
|
| @@ -464,6 +464,8 @@ void BluetoothDispatcherHost::OnConnectGATT(
|
| thread_id, request_id, WebBluetoothError::DeviceNoLongerInRange));
|
| return;
|
| }
|
| + // TODO(ortuno): Save the BluetoothGattConnection so we can disconnect
|
| + // from it.
|
| device->CreateGattConnection(
|
| base::Bind(&BluetoothDispatcherHost::OnGATTConnectionCreated,
|
| weak_ptr_factory_.GetWeakPtr(), thread_id, request_id,
|
| @@ -826,10 +828,7 @@ void BluetoothDispatcherHost::OnGATTConnectionCreated(
|
| int thread_id,
|
| int request_id,
|
| const std::string& device_instance_id,
|
| - base::TimeTicks start_time,
|
| - scoped_ptr<device::BluetoothGattConnection> connection) {
|
| - // TODO(ortuno): Save the BluetoothGattConnection so we can disconnect
|
| - // from it.
|
| + base::TimeTicks start_time) {
|
| RecordConnectGATTTimeSuccess(base::TimeTicks::Now() - start_time);
|
| RecordConnectGATTOutcome(UMAConnectGATTOutcome::SUCCESS);
|
| Send(new BluetoothMsg_ConnectGATTSuccess(thread_id, request_id,
|
|
|