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

Unified Diff: device/bluetooth/bluetooth_adapter_win.h

Issue 812673002: bluetooth: BluetoothAdapterDeleter used to control BluetoothAdapter destruction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: respond to armansito & fix Mock Created 6 years 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_adapter_win.h
diff --git a/device/bluetooth/bluetooth_adapter_win.h b/device/bluetooth/bluetooth_adapter_win.h
index 7d1912566458e28b4a777a9fc6c616cc8b11fc90..4fda8fee5386869ddbf18b11e91698481fe93451 100644
--- a/device/bluetooth/bluetooth_adapter_win.h
+++ b/device/bluetooth/bluetooth_adapter_win.h
@@ -89,6 +89,7 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterWin
device::BluetoothDevice::PairingDelegate* pairing_delegate) override;
private:
+ friend class base::DeleteHelper<BluetoothAdapterWin>;
friend class BluetoothAdapterWinTest;
enum DiscoveryStatus {
@@ -102,6 +103,7 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterWin
virtual ~BluetoothAdapterWin();
// BluetoothAdapter:
+ void DeleteOnCorrectThread() const override;
virtual void AddDiscoverySession(
const base::Closure& callback,
const ErrorCallback& error_callback) override;

Powered by Google App Engine
This is Rietveld 408576698