| Index: device/bluetooth/bluetooth_adapter_chromeos.cc
|
| diff --git a/device/bluetooth/bluetooth_adapter_chromeos.cc b/device/bluetooth/bluetooth_adapter_chromeos.cc
|
| index c7f94e96eefbc0374e97a2df8efb0917baac72cc..e6c628322d349b629b507b17f753d8d541b35955 100644
|
| --- a/device/bluetooth/bluetooth_adapter_chromeos.cc
|
| +++ b/device/bluetooth/bluetooth_adapter_chromeos.cc
|
| @@ -1012,8 +1012,7 @@ void BluetoothAdapterChromeOS::OnRegisterProfileError(
|
| << ": Failed to register profile: " << error_name << ": "
|
| << error_message;
|
| error_callback.Run(error_message);
|
| - delete profiles_[uuid];
|
| - profiles_.erase(uuid);
|
| + ReleaseProfile(uuid);
|
| }
|
|
|
| void BluetoothAdapterChromeOS::OnSetDiscoverable(
|
|
|