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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 metrics::MetricsService* ApplicationContextImpl::GetMetricsService() { | 220 metrics::MetricsService* ApplicationContextImpl::GetMetricsService() { |
221 DCHECK(thread_checker_.CalledOnValidThread()); | 221 DCHECK(thread_checker_.CalledOnValidThread()); |
222 return GetMetricsServicesManager()->GetMetricsService(); | 222 return GetMetricsServicesManager()->GetMetricsService(); |
223 } | 223 } |
224 | 224 |
225 variations::VariationsService* ApplicationContextImpl::GetVariationsService() { | 225 variations::VariationsService* ApplicationContextImpl::GetVariationsService() { |
226 DCHECK(thread_checker_.CalledOnValidThread()); | 226 DCHECK(thread_checker_.CalledOnValidThread()); |
227 return GetMetricsServicesManager()->GetVariationsService(); | 227 return GetMetricsServicesManager()->GetVariationsService(); |
228 } | 228 } |
229 | 229 |
230 rappor::RapporService* ApplicationContextImpl::GetRapporService() { | 230 rappor::RapporServiceImpl* ApplicationContextImpl::GetRapporServiceImpl() { |
231 DCHECK(thread_checker_.CalledOnValidThread()); | 231 DCHECK(thread_checker_.CalledOnValidThread()); |
232 return GetMetricsServicesManager()->GetRapporService(); | 232 return GetMetricsServicesManager()->GetRapporServiceImpl(); |
233 } | 233 } |
234 | 234 |
235 net_log::ChromeNetLog* ApplicationContextImpl::GetNetLog() { | 235 net_log::ChromeNetLog* ApplicationContextImpl::GetNetLog() { |
236 DCHECK(thread_checker_.CalledOnValidThread()); | 236 DCHECK(thread_checker_.CalledOnValidThread()); |
237 return net_log_.get(); | 237 return net_log_.get(); |
238 } | 238 } |
239 | 239 |
240 network_time::NetworkTimeTracker* | 240 network_time::NetworkTimeTracker* |
241 ApplicationContextImpl::GetNetworkTimeTracker() { | 241 ApplicationContextImpl::GetNetworkTimeTracker() { |
242 DCHECK(thread_checker_.CalledOnValidThread()); | 242 DCHECK(thread_checker_.CalledOnValidThread()); |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)); | 344 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)); |
345 | 345 |
346 gcm_driver_ = gcm::CreateGCMDriverDesktop( | 346 gcm_driver_ = gcm::CreateGCMDriverDesktop( |
347 base::WrapUnique(new gcm::GCMClientFactory), GetLocalState(), store_path, | 347 base::WrapUnique(new gcm::GCMClientFactory), GetLocalState(), store_path, |
348 GetSystemURLRequestContext(), ::GetChannel(), | 348 GetSystemURLRequestContext(), ::GetChannel(), |
349 IOSChromeGCMProfileServiceFactory::GetProductCategoryForSubtypes(), | 349 IOSChromeGCMProfileServiceFactory::GetProductCategoryForSubtypes(), |
350 web::WebThread::GetTaskRunnerForThread(web::WebThread::UI), | 350 web::WebThread::GetTaskRunnerForThread(web::WebThread::UI), |
351 web::WebThread::GetTaskRunnerForThread(web::WebThread::IO), | 351 web::WebThread::GetTaskRunnerForThread(web::WebThread::IO), |
352 blocking_task_runner); | 352 blocking_task_runner); |
353 } | 353 } |
OLD | NEW |