Add a Java API for UMA histograms.

This patch adds a simple Java API for base/metrics, allowing to record
boolean and enumerated histograms directly from the Java code.

A test util (HistogramDelta) for histograms is also upstreamed from
Chrome for Android and used for testing the new API.

BUG=442300

Review URL: https://codereview.chromium.org/794273004

Cr-Commit-Position: refs/heads/master@{#312513}


CrOS-Libchrome-Original-Commit: dde405ee64e9cf1dab9bf38995acef27014de2f9
diff --git a/base/base.gypi b/base/base.gypi
index 349308c..c1c5f2b 100644
--- a/base/base.gypi
+++ b/base/base.gypi
@@ -72,6 +72,8 @@
           'android/path_service_android.h',
           'android/path_utils.cc',
           'android/path_utils.h',
+          'android/record_histogram.cc',
+          'android/record_histogram.h',
           'android/sys_utils.cc',
           'android/sys_utils.h',
           'android/thread_utils.h',