| Index: device/bluetooth/bluetooth_socket_chromeos.cc
|
| diff --git a/device/bluetooth/bluetooth_socket_chromeos.cc b/device/bluetooth/bluetooth_socket_chromeos.cc
|
| index 3026113a5cb9a1de191b98e29b04759b29129b4e..2e58dca1b269b0ed5d82a691f234f92fd9b84a75 100644
|
| --- a/device/bluetooth/bluetooth_socket_chromeos.cc
|
| +++ b/device/bluetooth/bluetooth_socket_chromeos.cc
|
| @@ -558,11 +558,7 @@ void BluetoothSocketChromeOS::UnregisterProfile() {
|
|
|
| void BluetoothSocketChromeOS::ReleaseProfile(
|
| BluetoothAdapterProfileChromeOS* profile) {
|
| - if (adapter_)
|
| - static_cast<BluetoothAdapterChromeOS*>(adapter_.get())
|
| - ->ReleaseProfile(uuid_);
|
| - else
|
| - delete profile;
|
| + delete profile;
|
| }
|
|
|
| } // namespace chromeos
|
|
|