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

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: MockBluetoothAdapter::OnDBusThreadManagerShutdown (and a rebase) 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 df0621b970a7849b26119cf8a69659e4ee1c8311..09098f0ab232edc3fe8246558f8750c0289128dd 100644
--- a/device/bluetooth/bluetooth_adapter.h
+++ b/device/bluetooth/bluetooth_adapter.h
@@ -192,6 +192,14 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapter
// Returns a weak pointer to an existing adapter for testing purposes only.
base::WeakPtr<BluetoothAdapter> GetWeakPtrForTesting();
+#if defined(OS_CHROMEOS)
+ // Shutdown the adapter: tear down and clean up all objects owned by
+ // BluetoothAdapter. After this call, the BluetoothAdapter will behave as if
+ // no Bluetooth controller exists in the local system. |IsPresent| will return
+ // false. No futher use of DBusThreadManager will be made.
+ void OnDBusThreadManagerShutdown();
armansito 2015/01/16 21:57:18 If we're going to have this in BluetoothAdapter, t
scheib 2015/01/16 22:28:27 Done.
+#endif
+
// Adds and removes observers for events on this bluetooth adapter. If
// monitoring multiple adapters, check the |adapter| parameter of observer
// methods to determine which adapter is issuing the event.

Powered by Google App Engine
This is Rietveld 408576698