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

Unified Diff: chromeos/dbus/dbus_thread_manager.cc

Issue 10546010: Implement support for the OOB Pairing APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: refactor to create BluetoothOutOfBandClient Created 8 years, 6 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: chromeos/dbus/dbus_thread_manager.cc
diff --git a/chromeos/dbus/dbus_thread_manager.cc b/chromeos/dbus/dbus_thread_manager.cc
index c816866ddfd9e1652374e3aa848f5e61d2589ded..c10936e605360eb5deb5d2c61b39d8de1ed1db31 100644
--- a/chromeos/dbus/dbus_thread_manager.cc
+++ b/chromeos/dbus/dbus_thread_manager.cc
@@ -13,6 +13,7 @@
#include "chromeos/dbus/bluetooth_input_client.h"
#include "chromeos/dbus/bluetooth_manager_client.h"
#include "chromeos/dbus/bluetooth_node_client.h"
+#include "chromeos/dbus/bluetooth_out_of_band_client.h"
#include "chromeos/dbus/cashew_client.h"
#include "chromeos/dbus/cros_disks_client.h"
#include "chromeos/dbus/cryptohome_client.h"
@@ -75,6 +76,8 @@ class DBusThreadManagerImpl : public DBusThreadManager {
client_type, system_bus_.get(), bluetooth_adapter_client_.get()));
bluetooth_node_client_.reset(BluetoothNodeClient::Create(
client_type, system_bus_.get(), bluetooth_device_client_.get()));
+ bluetooth_out_of_band_client_.reset(BluetoothOutOfBandClient::Create(
+ client_type, system_bus_.get()));
// Create the Cashew client.
cashew_client_.reset(CashewClient::Create(client_type, system_bus_.get()));
// Create the cros-disks client.
@@ -200,6 +203,11 @@ class DBusThreadManagerImpl : public DBusThreadManager {
}
// DBusThreadManager override.
+ virtual BluetoothOutOfBandClient* GetBluetoothOutOfBandClient() OVERRIDE {
+ return bluetooth_out_of_band_client_.get();
+ }
+
+ // DBusThreadManager override.
virtual CashewClient* GetCashewClient() OVERRIDE {
return cashew_client_.get();
}
@@ -302,6 +310,7 @@ class DBusThreadManagerImpl : public DBusThreadManager {
scoped_ptr<BluetoothInputClient> bluetooth_input_client_;
scoped_ptr<BluetoothManagerClient> bluetooth_manager_client_;
scoped_ptr<BluetoothNodeClient> bluetooth_node_client_;
+ scoped_ptr<BluetoothOutOfBandClient> bluetooth_out_of_band_client_;
scoped_ptr<CashewClient> cashew_client_;
scoped_ptr<CrosDisksClient> cros_disks_client_;
scoped_ptr<CryptohomeClient> cryptohome_client_;

Powered by Google App Engine
This is Rietveld 408576698