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

Unified Diff: chromeos/dbus/dbus_thread_manager.cc

Issue 935933002: Adds metronome time sync dbus client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds a command line flag to use a timer-based fake implementation Created 5 years, 10 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/metronome_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 62f48f1d3909f0a06cafff1ad7dd610aef5d6f4b..c8d7ddbd015c36890566b552dcbab1f12a39e6a6 100644
--- a/chromeos/dbus/dbus_thread_manager.cc
+++ b/chromeos/dbus/dbus_thread_manager.cc
@@ -30,6 +30,7 @@
#include "chromeos/dbus/introspectable_client.h"
#include "chromeos/dbus/leadership_daemon_manager_client.h"
#include "chromeos/dbus/lorgnette_manager_client.h"
+#include "chromeos/dbus/metronome_client.h"
#include "chromeos/dbus/modem_messaging_client.h"
#include "chromeos/dbus/nfc_adapter_client.h"
#include "chromeos/dbus/nfc_device_client.h"
@@ -192,6 +193,10 @@ DBusThreadManager::GetLorgnetteManagerClient() {
return client_bundle_->lorgnette_manager_client();
}
+MetronomeClient* DBusThreadManager::GetMetronomeClient() {
+ return client_bundle_->metronome_client();
+}
+
ShillDeviceClient*
DBusThreadManager::GetShillDeviceClient() {
return client_bundle_->shill_device_client();
@@ -308,6 +313,7 @@ void DBusThreadManager::InitializeClients() {
GetIntrospectableClient()->Init(GetSystemBus());
GetLeadershipDaemonManagerClient()->Init(GetSystemBus());
GetLorgnetteManagerClient()->Init(GetSystemBus());
+ GetMetronomeClient()->Init(GetSystemBus());
GetModemMessagingClient()->Init(GetSystemBus());
GetPermissionBrokerClient()->Init(GetSystemBus());
GetPeerDaemonManagerClient()->Init(GetSystemBus());
@@ -546,6 +552,11 @@ void DBusThreadManagerSetter::SetLorgnetteManagerClient(
client.Pass();
}
+void DBusThreadManagerSetter::SetMetronomeClient(
+ scoped_ptr<MetronomeClient> client) {
+ DBusThreadManager::Get()->client_bundle_->metronome_client_ = client.Pass();
+}
+
void DBusThreadManagerSetter::SetShillDeviceClient(
scoped_ptr<ShillDeviceClient> client) {
DBusThreadManager::Get()->client_bundle_->shill_device_client_ =
« no previous file with comments | « chromeos/dbus/dbus_thread_manager.h ('k') | chromeos/dbus/metronome_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698