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/metrics/ios_chrome_metrics_services_manager_client.
h" | 5 #include "ios/chrome/browser/metrics/ios_chrome_metrics_services_manager_client.
h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/prefs/pref_service.h" | |
10 #include "components/metrics/metrics_state_manager.h" | 9 #include "components/metrics/metrics_state_manager.h" |
| 10 #include "components/prefs/pref_service.h" |
11 #include "components/rappor/rappor_service.h" | 11 #include "components/rappor/rappor_service.h" |
12 #include "components/variations/service/variations_service.h" | 12 #include "components/variations/service/variations_service.h" |
13 #include "ios/chrome/browser/application_context.h" | 13 #include "ios/chrome/browser/application_context.h" |
14 #include "ios/chrome/browser/chrome_switches.h" | 14 #include "ios/chrome/browser/chrome_switches.h" |
15 #include "ios/chrome/browser/metrics/ios_chrome_metrics_service_accessor.h" | 15 #include "ios/chrome/browser/metrics/ios_chrome_metrics_service_accessor.h" |
16 #include "ios/chrome/browser/metrics/ios_chrome_metrics_service_client.h" | 16 #include "ios/chrome/browser/metrics/ios_chrome_metrics_service_client.h" |
17 #include "ios/chrome/browser/ui/browser_otr_state.h" | 17 #include "ios/chrome/browser/ui/browser_otr_state.h" |
18 #include "ios/chrome/browser/variations/ios_chrome_variations_service_client.h" | 18 #include "ios/chrome/browser/variations/ios_chrome_variations_service_client.h" |
19 #include "ios/chrome/browser/variations/ios_ui_string_overrider_factory.h" | 19 #include "ios/chrome/browser/variations/ios_ui_string_overrider_factory.h" |
20 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" | 20 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 DCHECK(thread_checker_.CalledOnValidThread()); | 92 DCHECK(thread_checker_.CalledOnValidThread()); |
93 if (!metrics_state_manager_) { | 93 if (!metrics_state_manager_) { |
94 metrics_state_manager_ = metrics::MetricsStateManager::Create( | 94 metrics_state_manager_ = metrics::MetricsStateManager::Create( |
95 local_state_, base::Bind(&IOSChromeMetricsServiceAccessor:: | 95 local_state_, base::Bind(&IOSChromeMetricsServiceAccessor:: |
96 IsMetricsAndCrashReportingEnabled), | 96 IsMetricsAndCrashReportingEnabled), |
97 base::Bind(&PostStoreMetricsClientInfo), | 97 base::Bind(&PostStoreMetricsClientInfo), |
98 base::Bind(&LoadMetricsClientInfo)); | 98 base::Bind(&LoadMetricsClientInfo)); |
99 } | 99 } |
100 return metrics_state_manager_.get(); | 100 return metrics_state_manager_.get(); |
101 } | 101 } |
OLD | NEW |