Chromium Code Reviews| Index: chromeos/dbus/dbus_thread_manager.cc |
| diff --git a/chromeos/dbus/dbus_thread_manager.cc b/chromeos/dbus/dbus_thread_manager.cc |
| index 6db36c27d521fee6e5319842985d512925907bff..6c40132b31358ed36b53064f7e511618f0f93976 100644 |
| --- a/chromeos/dbus/dbus_thread_manager.cc |
| +++ b/chromeos/dbus/dbus_thread_manager.cc |
| @@ -19,6 +19,7 @@ |
| #include "chromeos/dbus/bluetooth_gatt_manager_client.h" |
| #include "chromeos/dbus/bluetooth_gatt_service_client.h" |
| #include "chromeos/dbus/bluetooth_input_client.h" |
| +#include "chromeos/dbus/bluetooth_le_advertising_manager_client.h" |
| #include "chromeos/dbus/bluetooth_media_client.h" |
| #include "chromeos/dbus/bluetooth_media_transport_client.h" |
| #include "chromeos/dbus/bluetooth_profile_manager_client.h" |
| @@ -132,6 +133,11 @@ BluetoothAdapterClient* DBusThreadManager::GetBluetoothAdapterClient() { |
| return client_bundle_->bluetooth_adapter_client(); |
| } |
| +BluetoothLEAdvertisingManagerClient* |
| +DBusThreadManager::GetBluetoothLEAdvertisingManagerClient() { |
| + return client_bundle_->bluetooth_le_advertising_manager_client(); |
| +} |
| + |
| BluetoothAgentManagerClient* |
| DBusThreadManager::GetBluetoothAgentManagerClient() { |
| return client_bundle_->bluetooth_agent_manager_client(); |
| @@ -488,6 +494,13 @@ void DBusThreadManagerSetter::SetBluetoothAdapterClient( |
| client.Pass(); |
| } |
| +void DBusThreadManagerSetter::SetBluetoothLEAdvertisingManagerClient( |
| + scoped_ptr<BluetoothLEAdvertisingManagerClient> client) { |
| + DBusThreadManager::Get() |
| + ->client_bundle_->bluetooth_le_advertising_manager_client_ = |
| + client.Pass(); |
|
armansito
2015/04/15 23:56:49
nit: Did git cl format output this? it hurts my ey
rkc
2015/04/16 18:13:05
Yep. I always do a git cl format before git cl upl
armansito
2015/04/16 18:42:09
My eyes are still bleeding though. Make it nicer i
rkc
2015/04/16 18:49:58
Changed it to match how bluetooth_gatt_characteris
|
| +} |
| + |
| void DBusThreadManagerSetter::SetBluetoothAgentManagerClient( |
| scoped_ptr<BluetoothAgentManagerClient> client) { |
| DBusThreadManager::Get()->client_bundle_->bluetooth_agent_manager_client_ = |