metrics: Convert Metrics to DBusDaemon

In order to remove glib, convert Metrics from the glib message loop to
DBusDaemon, which is based on base::MessageLoop.  Also use the DBusDaemon's
dbus::Bus object directly to set up the CrashReporter signal handling, as
the ObjectProxy used by chromeos-dbus-bindings requires all signals be sent
from registered name owners.

TEST=Unittests and hwtests pass.
TEST=`test_that -b panther <IP> platform_MetricsUploader` passes

Change-Id: I6bc1f66999a43065b0d48325b031cd36bb782b76
Reviewed-by: Alex Vakulenko <>
Commit-Queue: Steve Fung <>
Tested-by: Steve Fung <>
4 files changed
tree: 41b53751242a4e86ea853c5e1badeac6132ec742
  1. metrics/