metrics: fork metrics sources from Chromium source base

In preparation to libchrome uprev, fork off non-protobuf code
from Chromium's metrics component into platform2/metrics.

The current version of Chromium's metrics component has been
significantly refactored and pieces of functionality that
Chromium OS was dependant on (e.g. MetricsLogBase class) has
been removed completely.

So, taking the r293518 version we have been using for a while
and putting it as part of platform2/metrics now.

TEST=FEATURES=test emerge-link metrics

Change-Id: Ib46ac1dff2e2b9cc881e4787b3c6b6250f0bf9c4
Tested-by: Alex Vakulenko <>
Reviewed-by: Bertrand Simonnet <>
Commit-Queue: Alex Vakulenko <>
Trybot-Ready: Alex Vakulenko <>
18 files changed
tree: f79cbb181a328655ae2979acbf498ae004c0e4c1
  1. metrics/