| // Copyright 2015 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "ios/chrome/browser/safe_browsing/hit_report.h" |
| |
| #include "components/metrics/metrics_service.h" |
| #include "ios/chrome/browser/application_context.h" |
| |
| namespace safe_browsing { |
| |
| HitReport::HitReport() {} |
| |
| HitReport::~HitReport() {} |
| |
| bool IsMetricsReportingActive() { |
| const metrics::MetricsService* metrics = |
| GetApplicationContext()->GetMetricsService(); |
| return metrics && metrics->reporting_active(); |
| } |
| |
| } // namespace safe_browsing |