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

Unified Diff: chromeos/dbus/dbus_thread_manager.cc

Issue 996013003: privetd: Expose dbus API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mysterious build failure Created 5 years, 9 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') | chromeos/dbus/fake_privet_daemon_manager_client.h » ('j') | 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 a00a6f68a1d518d05ee05d4773d2e667516d428e..c4741e57aee28da1684f1cd5eaf0d3f845378a75 100644
--- a/chromeos/dbus/dbus_thread_manager.cc
+++ b/chromeos/dbus/dbus_thread_manager.cc
@@ -41,6 +41,7 @@
#include "chromeos/dbus/peer_daemon_manager_client.h"
#include "chromeos/dbus/permission_broker_client.h"
#include "chromeos/dbus/power_manager_client.h"
+#include "chromeos/dbus/privet_daemon_manager_client.h"
#include "chromeos/dbus/session_manager_client.h"
#include "chromeos/dbus/shill_device_client.h"
#include "chromeos/dbus/shill_ipconfig_client.h"
@@ -280,6 +281,10 @@ PowerManagerClient* DBusThreadManager::GetPowerManagerClient() {
return client_bundle_->power_manager_client();
}
+PrivetDaemonManagerClient* DBusThreadManager::GetPrivetDaemonManagerClient() {
+ return client_bundle_->privet_daemon_manager_client();
+}
+
SessionManagerClient* DBusThreadManager::GetSessionManagerClient() {
return client_bundle_->session_manager_client();
}
@@ -323,6 +328,7 @@ void DBusThreadManager::InitializeClients() {
GetModemMessagingClient()->Init(GetSystemBus());
GetPermissionBrokerClient()->Init(GetSystemBus());
GetPeerDaemonManagerClient()->Init(GetSystemBus());
+ GetPrivetDaemonManagerClient()->Init(GetSystemBus());
GetPowerManagerClient()->Init(GetSystemBus());
GetSessionManagerClient()->Init(GetSystemBus());
GetShillDeviceClient()->Init(GetSystemBus());
@@ -659,6 +665,12 @@ void DBusThreadManagerSetter::SetPermissionBrokerClient(
client.Pass();
}
+void DBusThreadManagerSetter::SetPrivetDaemonManagerClient(
+ scoped_ptr<PrivetDaemonManagerClient> client) {
+ DBusThreadManager::Get()->client_bundle_->privet_daemon_manager_client_ =
+ client.Pass();
+}
+
void DBusThreadManagerSetter::SetPowerManagerClient(
scoped_ptr<PowerManagerClient> client) {
DBusThreadManager::Get()->client_bundle_->power_manager_client_ =
« no previous file with comments | « chromeos/dbus/dbus_thread_manager.h ('k') | chromeos/dbus/fake_privet_daemon_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698