Report Enum metrics from CertificateChecker.

The certificate checker was reporting a "user action" whenever an
update check HTTPS connection or HTTPS payload download had an invalid
HTTPS certificate or a valid one that was changed since the last
connection to the same server.

This patch sends an Enum metric for every HTTPS connection to check for
and update or download the payload with one of the three options: an
invalid certificate, a valid one already seen or a valid but different
certificate.

This patch also moves these metrics to the metrics.{h,cc} module, where
all the other metrics are reported, using an observer pattern in the
CertificateChecker, needed to remove the dependency on the metrics
library from the libpayload_consumer.

Bug: 25818567
TEST=FEATURES=test emerge-link update_engine; mma;

Change-Id: Ia1b6eb799e13b439b520ba14549d8973e18bcbfa
diff --git a/omaha_request_action.cc b/omaha_request_action.cc
index 3e69e96..f2cd032 100644
--- a/omaha_request_action.cc
+++ b/omaha_request_action.cc
@@ -494,13 +494,14 @@
   return default_value;
 }
 
-OmahaRequestAction::OmahaRequestAction(SystemState* system_state,
-                                       OmahaEvent* event,
-                                       HttpFetcher* http_fetcher,
-                                       bool ping_only)
+OmahaRequestAction::OmahaRequestAction(
+    SystemState* system_state,
+    OmahaEvent* event,
+    std::unique_ptr<HttpFetcher> http_fetcher,
+    bool ping_only)
     : system_state_(system_state),
       event_(event),
-      http_fetcher_(http_fetcher),
+      http_fetcher_(std::move(http_fetcher)),
       ping_only_(ping_only),
       ping_active_days_(0),
       ping_roll_call_days_(0) {