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

Unified Diff: device/bluetooth/bluetooth_adapter_factory.h

Issue 848613003: bluetooth: Shutdown BluetoothAdapter before DBus on ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Limit shutdown to defined(CHROMEOS); add checks that methods aren't run after shutdown 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_factory.h
diff --git a/device/bluetooth/bluetooth_adapter_factory.h b/device/bluetooth/bluetooth_adapter_factory.h
index 9b98a211559aeb80604f58179f420427665985f0..0c6e33d43e7ea309d083bd6b0fb9f7b569f1958f 100644
--- a/device/bluetooth/bluetooth_adapter_factory.h
+++ b/device/bluetooth/bluetooth_adapter_factory.h
@@ -29,6 +29,12 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterFactory {
// use.
static void GetAdapter(const AdapterCallback& callback);
+#if defined(OS_CHROMEOS)
+ // Shutdown the adapter, ending reliance DBusThreadManager, and resulting in
armansito 2015/01/14 23:49:47 nit: I would make this a bit more descriptive, may
scheib 2015/01/15 00:03:40 Done.
+ // the adapter's |IsPresent| returning false.
+ static void OnDBusThreadManagerShutdown();
+#endif
+
// Sets the shared instance of the default adapter for testing purposes only,
// no reference is retained after completion of the call, removing the last
// reference will reset the factory.

Powered by Google App Engine
This is Rietveld 408576698