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

Unified Diff: device/bluetooth/bluetooth_adapter.h

Issue 848613003: bluetooth: Shutdown BluetoothAdapter before DBus on ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Created 5 years, 11 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_adapter.h
diff --git a/device/bluetooth/bluetooth_adapter.h b/device/bluetooth/bluetooth_adapter.h
index 5184f2953a09bb018f56dc7192422b1156571e89..5d900ff55a67a650e60975e188115b6fae35164b 100644
--- a/device/bluetooth/bluetooth_adapter.h
+++ b/device/bluetooth/bluetooth_adapter.h
@@ -188,6 +188,10 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapter
static base::WeakPtr<BluetoothAdapter> CreateAdapter(
const InitCallback& init_callback);
+ // Shutdown the adapter, ending reliance on other objects, and resulting in
+ // |IsPresent| returning false.
+ virtual void Shutdown();
armansito 2015/01/14 19:52:43 Again, should this just be a BluetoothAdapterChrom
scheib 2015/01/14 23:07:26 Done.
+
// Returns a weak pointer to an existing adapter for testing purposes only.
base::WeakPtr<BluetoothAdapter> GetWeakPtrForTesting();

Powered by Google App Engine
This is Rietveld 408576698