Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Unified Diff: device/bluetooth/bluetooth_socket_chromeos.cc

Issue 935383003: Fix BluetoothAdapterProfileChromeOS lifecycle management (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698