Add Metrics Reporting Check to Hats

BUG=979530

Change-Id: If6ec9cdc45eea4406c305f5f472f206a4abe8e03
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1703204
Reviewed-by: Mark Pearson <[email protected]>
Commit-Queue: Robert Liao <[email protected]>
Cr-Commit-Position: refs/heads/master@{#678364}
diff --git a/components/metrics_services_manager/metrics_services_manager.h b/components/metrics_services_manager/metrics_services_manager.h
index 638c2fc..38c955cf 100644
--- a/components/metrics_services_manager/metrics_services_manager.h
+++ b/components/metrics_services_manager/metrics_services_manager.h
@@ -82,6 +82,9 @@
   // Gets the current state of metric reporting.
   bool IsMetricsReportingEnabled() const;
 
+  // Gets the current state of metrics consent.
+  bool IsMetricsConsentGiven() const;
+
  private:
   // Update the managed services when permissions for recording/uploading
   // metrics change.