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" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "base/threading/sequenced_worker_pool.h" | |
17 #include "base/time/default_clock.h" | 16 #include "base/time/default_clock.h" |
18 #include "base/time/default_tick_clock.h" | 17 #include "base/time/default_tick_clock.h" |
19 #include "base/tracked_objects.h" | 18 #include "base/tracked_objects.h" |
20 #include "components/component_updater/component_updater_service.h" | 19 #include "components/component_updater/component_updater_service.h" |
21 #include "components/gcm_driver/gcm_client_factory.h" | 20 #include "components/gcm_driver/gcm_client_factory.h" |
22 #include "components/gcm_driver/gcm_desktop_utils.h" | 21 #include "components/gcm_driver/gcm_desktop_utils.h" |
23 #include "components/gcm_driver/gcm_driver.h" | 22 #include "components/gcm_driver/gcm_driver.h" |
24 #include "components/history/core/browser/history_service.h" | 23 #include "components/history/core/browser/history_service.h" |
25 #include "components/keyed_service/core/service_access_type.h" | 24 #include "components/keyed_service/core/service_access_type.h" |
26 #include "components/metrics/metrics_service.h" | 25 #include "components/metrics/metrics_service.h" |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)); | 345 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)); |
347 | 346 |
348 gcm_driver_ = gcm::CreateGCMDriverDesktop( | 347 gcm_driver_ = gcm::CreateGCMDriverDesktop( |
349 base::WrapUnique(new gcm::GCMClientFactory), GetLocalState(), store_path, | 348 base::WrapUnique(new gcm::GCMClientFactory), GetLocalState(), store_path, |
350 GetSystemURLRequestContext(), ::GetChannel(), | 349 GetSystemURLRequestContext(), ::GetChannel(), |
351 IOSChromeGCMProfileServiceFactory::GetProductCategoryForSubtypes(), | 350 IOSChromeGCMProfileServiceFactory::GetProductCategoryForSubtypes(), |
352 web::WebThread::GetTaskRunnerForThread(web::WebThread::UI), | 351 web::WebThread::GetTaskRunnerForThread(web::WebThread::UI), |
353 web::WebThread::GetTaskRunnerForThread(web::WebThread::IO), | 352 web::WebThread::GetTaskRunnerForThread(web::WebThread::IO), |
354 blocking_task_runner); | 353 blocking_task_runner); |
355 } | 354 } |
OLD | NEW |