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

Unified Diff: chromeos/dbus/dbus_client_bundle.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_client_bundle.h ('k') | chromeos/dbus/dbus_thread_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/dbus_client_bundle.cc
diff --git a/chromeos/dbus/dbus_client_bundle.cc b/chromeos/dbus/dbus_client_bundle.cc
index 77a7010c8012c65f970fcc406f52a9a89d9c75b3..d762b7ec22917269512fc67f9028e8ed88b7a8a2 100644
--- a/chromeos/dbus/dbus_client_bundle.cc
+++ b/chromeos/dbus/dbus_client_bundle.cc
@@ -67,6 +67,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"
@@ -105,6 +106,7 @@ const struct {
{ "easy_unlock", DBusClientBundle::EASY_UNLOCK },
{ "leadership_daemon", DBusClientBundle::LEADERSHIP_DAEMON },
{ "lorgnette_manager", DBusClientBundle::LORGNETTE_MANAGER },
+ { "metronome", DBusClientBundle::METRONOME },
{ "shill", DBusClientBundle::SHILL },
{ "gsm_sms", DBusClientBundle::GSM_SMS },
{ "image_burner", DBusClientBundle::IMAGE_BURNER },
@@ -201,6 +203,10 @@ DBusClientBundle::DBusClientBundle(DBusClientTypeMask unstub_client_mask)
else
lorgnette_manager_client_.reset(new FakeLorgnetteManagerClient);
+ metronome_client_.reset(MetronomeClient::Create(
+ IsUsingStub(METRONOME) ? STUB_DBUS_CLIENT_IMPLEMENTATION
+ : REAL_DBUS_CLIENT_IMPLEMENTATION));
+
if (!IsUsingStub(SHILL)) {
shill_manager_client_.reset(ShillManagerClient::Create());
shill_device_client_.reset(ShillDeviceClient::Create());
« no previous file with comments | « chromeos/dbus/dbus_client_bundle.h ('k') | chromeos/dbus/dbus_thread_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698