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

Unified Diff: device/bluetooth/bluetooth_task_manager_win.h

Issue 1672843002: Implement fake Bluetooth adapter for BluetoothTest.ConstructFakeAdapter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move ScopedHandle from task manager to low level code Created 4 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_task_manager_win.h
diff --git a/device/bluetooth/bluetooth_task_manager_win.h b/device/bluetooth/bluetooth_task_manager_win.h
index 4cde9e6ebf7f49ef9bc584ca7334b10074b50cce..56ecbef0417357c5d241e30c35e61521af3a4096 100644
--- a/device/bluetooth/bluetooth_task_manager_win.h
+++ b/device/bluetooth/bluetooth_task_manager_win.h
@@ -217,8 +217,9 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothTaskManagerWin
// List of observers interested in event notifications.
base::ObserverList<Observer> observers_;
- // Adapter handle owned by bluetooth task runner.
- base::win::ScopedHandle adapter_handle_;
+ // Weak reference of the adapter handle, let BluetoothClassicWrapper handle
+ // the close of |adapter_handle_|.
+ HANDLE adapter_handle_;
// indicates whether the adapter is in discovery mode or not.
bool discovering_;

Powered by Google App Engine
This is Rietveld 408576698