Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: ios/chrome/browser/interstitials/ios_chrome_metrics_helper.cc

Issue 1667733002: Move chrome_browser_state.{cc,h} to ios/chrome/browser/browser_state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@test_support_ios
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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.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/history/history_service_factory.h" 12 #include "ios/chrome/browser/history/history_service_factory.h"
12 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state. 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()->GetRapporService()) {}
27 27
28 IOSChromeMetricsHelper::~IOSChromeMetricsHelper() {} 28 IOSChromeMetricsHelper::~IOSChromeMetricsHelper() {}
29 29
30 void IOSChromeMetricsHelper::RecordExtraUserDecisionMetrics( 30 void IOSChromeMetricsHelper::RecordExtraUserDecisionMetrics(
31 security_interstitials::MetricsHelper::Decision decision) {} 31 security_interstitials::MetricsHelper::Decision decision) {}
32 32
33 void IOSChromeMetricsHelper::RecordExtraUserInteractionMetrics( 33 void IOSChromeMetricsHelper::RecordExtraUserInteractionMetrics(
34 security_interstitials::MetricsHelper::Interaction interaction) {} 34 security_interstitials::MetricsHelper::Interaction interaction) {}
35 35
36 void IOSChromeMetricsHelper::RecordExtraShutdownMetrics() {} 36 void IOSChromeMetricsHelper::RecordExtraShutdownMetrics() {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698