OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/application_context_impl.h" | 5 #include "ios/chrome/browser/application_context_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 metrics::MetricsService* ApplicationContextImpl::GetMetricsService() { | 221 metrics::MetricsService* ApplicationContextImpl::GetMetricsService() { |
222 DCHECK(thread_checker_.CalledOnValidThread()); | 222 DCHECK(thread_checker_.CalledOnValidThread()); |
223 return GetMetricsServicesManager()->GetMetricsService(); | 223 return GetMetricsServicesManager()->GetMetricsService(); |
224 } | 224 } |
225 | 225 |
226 variations::VariationsService* ApplicationContextImpl::GetVariationsService() { | 226 variations::VariationsService* ApplicationContextImpl::GetVariationsService() { |
227 DCHECK(thread_checker_.CalledOnValidThread()); | 227 DCHECK(thread_checker_.CalledOnValidThread()); |
228 return GetMetricsServicesManager()->GetVariationsService(); | 228 return GetMetricsServicesManager()->GetVariationsService(); |
229 } | 229 } |
230 | 230 |
231 rappor::RapporService* ApplicationContextImpl::GetRapporService() { | 231 rappor::RapporServiceImpl* ApplicationContextImpl::GetRapporServiceImpl() { |
232 DCHECK(thread_checker_.CalledOnValidThread()); | 232 DCHECK(thread_checker_.CalledOnValidThread()); |
233 return GetMetricsServicesManager()->GetRapporService(); | 233 return GetMetricsServicesManager()->GetRapporServiceImpl(); |
234 } | 234 } |
235 | 235 |
236 net_log::ChromeNetLog* ApplicationContextImpl::GetNetLog() { | 236 net_log::ChromeNetLog* ApplicationContextImpl::GetNetLog() { |
237 DCHECK(thread_checker_.CalledOnValidThread()); | 237 DCHECK(thread_checker_.CalledOnValidThread()); |
238 return net_log_.get(); | 238 return net_log_.get(); |
239 } | 239 } |
240 | 240 |
241 network_time::NetworkTimeTracker* | 241 network_time::NetworkTimeTracker* |
242 ApplicationContextImpl::GetNetworkTimeTracker() { | 242 ApplicationContextImpl::GetNetworkTimeTracker() { |
243 DCHECK(thread_checker_.CalledOnValidThread()); | 243 DCHECK(thread_checker_.CalledOnValidThread()); |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)); | 345 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)); |
346 | 346 |
347 gcm_driver_ = gcm::CreateGCMDriverDesktop( | 347 gcm_driver_ = gcm::CreateGCMDriverDesktop( |
348 base::WrapUnique(new gcm::GCMClientFactory), GetLocalState(), store_path, | 348 base::WrapUnique(new gcm::GCMClientFactory), GetLocalState(), store_path, |
349 GetSystemURLRequestContext(), ::GetChannel(), | 349 GetSystemURLRequestContext(), ::GetChannel(), |
350 IOSChromeGCMProfileServiceFactory::GetProductCategoryForSubtypes(), | 350 IOSChromeGCMProfileServiceFactory::GetProductCategoryForSubtypes(), |
351 web::WebThread::GetTaskRunnerForThread(web::WebThread::UI), | 351 web::WebThread::GetTaskRunnerForThread(web::WebThread::UI), |
352 web::WebThread::GetTaskRunnerForThread(web::WebThread::IO), | 352 web::WebThread::GetTaskRunnerForThread(web::WebThread::IO), |
353 blocking_task_runner); | 353 blocking_task_runner); |
354 } | 354 } |
OLD | NEW |