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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 DCHECK(thread_checker_.CalledOnValidThread()); | 247 DCHECK(thread_checker_.CalledOnValidThread()); |
248 return net_log_.get(); | 248 return net_log_.get(); |
249 } | 249 } |
250 | 250 |
251 network_time::NetworkTimeTracker* | 251 network_time::NetworkTimeTracker* |
252 ApplicationContextImpl::GetNetworkTimeTracker() { | 252 ApplicationContextImpl::GetNetworkTimeTracker() { |
253 DCHECK(thread_checker_.CalledOnValidThread()); | 253 DCHECK(thread_checker_.CalledOnValidThread()); |
254 if (!network_time_tracker_) { | 254 if (!network_time_tracker_) { |
255 network_time_tracker_.reset(new network_time::NetworkTimeTracker( | 255 network_time_tracker_.reset(new network_time::NetworkTimeTracker( |
256 base::WrapUnique(new base::DefaultClock), | 256 base::WrapUnique(new base::DefaultClock), |
257 base::WrapUnique(new base::DefaultTickClock), GetLocalState(), | 257 base::WrapUnique(new base::DefaultTickClock), GetLocalState())); |
258 GetSystemURLRequestContext())); | |
259 } | 258 } |
260 return network_time_tracker_.get(); | 259 return network_time_tracker_.get(); |
261 } | 260 } |
262 | 261 |
263 IOSChromeIOThread* ApplicationContextImpl::GetIOSChromeIOThread() { | 262 IOSChromeIOThread* ApplicationContextImpl::GetIOSChromeIOThread() { |
264 DCHECK(thread_checker_.CalledOnValidThread()); | 263 DCHECK(thread_checker_.CalledOnValidThread()); |
265 DCHECK(ios_chrome_io_thread_.get()); | 264 DCHECK(ios_chrome_io_thread_.get()); |
266 return ios_chrome_io_thread_.get(); | 265 return ios_chrome_io_thread_.get(); |
267 } | 266 } |
268 | 267 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 worker_pool->GetSequenceToken(), | 348 worker_pool->GetSequenceToken(), |
350 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)); | 349 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)); |
351 | 350 |
352 gcm_driver_ = gcm::CreateGCMDriverDesktop( | 351 gcm_driver_ = gcm::CreateGCMDriverDesktop( |
353 base::WrapUnique(new gcm::GCMClientFactory), GetLocalState(), store_path, | 352 base::WrapUnique(new gcm::GCMClientFactory), GetLocalState(), store_path, |
354 GetSystemURLRequestContext(), ::GetChannel(), | 353 GetSystemURLRequestContext(), ::GetChannel(), |
355 web::WebThread::GetTaskRunnerForThread(web::WebThread::UI), | 354 web::WebThread::GetTaskRunnerForThread(web::WebThread::UI), |
356 web::WebThread::GetTaskRunnerForThread(web::WebThread::IO), | 355 web::WebThread::GetTaskRunnerForThread(web::WebThread::IO), |
357 blocking_task_runner); | 356 blocking_task_runner); |
358 } | 357 } |
OLD | NEW |