summaryrefslogtreecommitdiffstats
path: root/ios/chrome/browser/interstitials/ios_chrome_metrics_helper.mm
blob: 5d2a7bdd8975fbc7b22ecb26285bea2b9160a32e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// 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/interstitials/ios_chrome_metrics_helper.h"

#include "components/history/core/browser/history_service.h"
#include "components/keyed_service/core/service_access_type.h"
#include "components/rappor/rappor_service.h"
#include "ios/chrome/browser/application_context.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state.h"
#include "ios/chrome/browser/history/history_service_factory.h"
#include "ios/web/public/web_state/web_state.h"

IOSChromeMetricsHelper::IOSChromeMetricsHelper(
    web::WebState* web_state,
    const GURL& request_url,
    const security_interstitials::MetricsHelper::ReportDetails report_details)
    : security_interstitials::MetricsHelper(
          request_url,
          report_details,
          ios::HistoryServiceFactory::GetForBrowserState(
              ios::ChromeBrowserState::FromBrowserState(
                  web_state->GetBrowserState()),
              ServiceAccessType::EXPLICIT_ACCESS),
          GetApplicationContext()->GetRapporService()) {}

IOSChromeMetricsHelper::~IOSChromeMetricsHelper() {}

void IOSChromeMetricsHelper::RecordExtraUserDecisionMetrics(
    security_interstitials::MetricsHelper::Decision decision) {}

void IOSChromeMetricsHelper::RecordExtraUserInteractionMetrics(
    security_interstitials::MetricsHelper::Interaction interaction) {}

void IOSChromeMetricsHelper::RecordExtraShutdownMetrics() {}