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 2646793003: cros: Add biod interfaces to dbus thread manager. (Closed)
Patch Set: Change to const. Created 3 years, 8 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
« no previous file with comments | « chromeos/dbus/dbus_thread_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/dbus_thread_manager.cc
diff --git a/chromeos/dbus/dbus_thread_manager.cc b/chromeos/dbus/dbus_thread_manager.cc
index f54dfe5dc7e7843ecbac38904cb1d7f24e2b940f..fcb59a0c62836d7d836b034b43807065132674db 100644
--- a/chromeos/dbus/dbus_thread_manager.cc
+++ b/chromeos/dbus/dbus_thread_manager.cc
@@ -13,6 +13,7 @@
#include "chromeos/chromeos_switches.h"
#include "chromeos/dbus/arc_obb_mounter_client.h"
#include "chromeos/dbus/auth_policy_client.h"
+#include "chromeos/dbus/biod/biod_client.h"
#include "chromeos/dbus/cras_audio_client.h"
#include "chromeos/dbus/cros_disks_client.h"
#include "chromeos/dbus/cryptohome_client.h"
@@ -116,6 +117,10 @@ AuthPolicyClient* DBusThreadManager::GetAuthPolicyClient() {
: nullptr;
}
+BiodClient* DBusThreadManager::GetBiodClient() {
+ return clients_common_->biod_client_.get();
+}
+
CrasAudioClient* DBusThreadManager::GetCrasAudioClient() {
return clients_common_->cras_audio_client_.get();
}
@@ -296,6 +301,11 @@ DBusThreadManagerSetter::DBusThreadManagerSetter() {}
DBusThreadManagerSetter::~DBusThreadManagerSetter() {}
+void DBusThreadManagerSetter::SetBiodClient(
+ std::unique_ptr<BiodClient> client) {
+ DBusThreadManager::Get()->clients_common_->biod_client_ = std::move(client);
+}
+
void DBusThreadManagerSetter::SetCrasAudioClient(
std::unique_ptr<CrasAudioClient> client) {
DBusThreadManager::Get()->clients_common_->cras_audio_client_ =
« no previous file with comments | « chromeos/dbus/dbus_thread_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698