OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ios/chrome/browser/interstitials/ios_chrome_metrics_helper.h" | 5 #include "ios/chrome/browser/interstitials/ios_chrome_metrics_helper.h" |
6 | 6 |
7 #include "components/history/core/browser/history_service.h" | 7 #include "components/history/core/browser/history_service.h" |
8 #include "components/keyed_service/core/service_access_type.h" | 8 #include "components/keyed_service/core/service_access_type.h" |
9 #include "components/rappor/rappor_service.h" | 9 #include "components/rappor/rappor_service_impl.h" |
10 #include "ios/chrome/browser/application_context.h" | 10 #include "ios/chrome/browser/application_context.h" |
11 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" | 11 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
12 #include "ios/chrome/browser/history/history_service_factory.h" | 12 #include "ios/chrome/browser/history/history_service_factory.h" |
13 #include "ios/web/public/web_state/web_state.h" | 13 #include "ios/web/public/web_state/web_state.h" |
14 | 14 |
15 IOSChromeMetricsHelper::IOSChromeMetricsHelper( | 15 IOSChromeMetricsHelper::IOSChromeMetricsHelper( |
16 web::WebState* web_state, | 16 web::WebState* web_state, |
17 const GURL& request_url, | 17 const GURL& request_url, |
18 const security_interstitials::MetricsHelper::ReportDetails report_details) | 18 const security_interstitials::MetricsHelper::ReportDetails report_details) |
19 : security_interstitials::MetricsHelper( | 19 : security_interstitials::MetricsHelper( |
20 request_url, | 20 request_url, |
21 report_details, | 21 report_details, |
22 ios::HistoryServiceFactory::GetForBrowserState( | 22 ios::HistoryServiceFactory::GetForBrowserState( |
23 ios::ChromeBrowserState::FromBrowserState( | 23 ios::ChromeBrowserState::FromBrowserState( |
24 web_state->GetBrowserState()), | 24 web_state->GetBrowserState()), |
25 ServiceAccessType::EXPLICIT_ACCESS), | 25 ServiceAccessType::EXPLICIT_ACCESS), |
26 GetApplicationContext()->GetRapporService() | 26 GetApplicationContext()->GetRapporServiceImpl() |
27 ? GetApplicationContext()->GetRapporService()->AsWeakPtr() | 27 ? GetApplicationContext()->GetRapporServiceImpl()->AsWeakPtr() |
28 : base::WeakPtr<rappor::RapporService>()) {} | 28 : base::WeakPtr<rappor::RapporServiceImpl>()) {} |
29 | 29 |
30 IOSChromeMetricsHelper::~IOSChromeMetricsHelper() {} | 30 IOSChromeMetricsHelper::~IOSChromeMetricsHelper() {} |
31 | 31 |
32 void IOSChromeMetricsHelper::RecordExtraUserDecisionMetrics( | 32 void IOSChromeMetricsHelper::RecordExtraUserDecisionMetrics( |
33 security_interstitials::MetricsHelper::Decision decision) {} | 33 security_interstitials::MetricsHelper::Decision decision) {} |
34 | 34 |
35 void IOSChromeMetricsHelper::RecordExtraUserInteractionMetrics( | 35 void IOSChromeMetricsHelper::RecordExtraUserInteractionMetrics( |
36 security_interstitials::MetricsHelper::Interaction interaction) {} | 36 security_interstitials::MetricsHelper::Interaction interaction) {} |
37 | 37 |
38 void IOSChromeMetricsHelper::RecordExtraShutdownMetrics() {} | 38 void IOSChromeMetricsHelper::RecordExtraShutdownMetrics() {} |
OLD | NEW |