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/sequenced_task_runner.h" |
16 #include "base/threading/sequenced_worker_pool.h" | 17 #include "base/threading/sequenced_worker_pool.h" |
17 #include "base/time/default_clock.h" | 18 #include "base/time/default_clock.h" |
18 #include "base/time/default_tick_clock.h" | 19 #include "base/time/default_tick_clock.h" |
19 #include "base/tracked_objects.h" | 20 #include "base/tracked_objects.h" |
20 #include "components/component_updater/component_updater_service.h" | 21 #include "components/component_updater/component_updater_service.h" |
21 #include "components/gcm_driver/gcm_client_factory.h" | 22 #include "components/gcm_driver/gcm_client_factory.h" |
22 #include "components/gcm_driver/gcm_desktop_utils.h" | 23 #include "components/gcm_driver/gcm_desktop_utils.h" |
23 #include "components/gcm_driver/gcm_driver.h" | 24 #include "components/gcm_driver/gcm_driver.h" |
24 #include "components/history/core/browser/history_service.h" | 25 #include "components/history/core/browser/history_service.h" |
25 #include "components/keyed_service/core/service_access_type.h" | 26 #include "components/keyed_service/core/service_access_type.h" |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)); | 358 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)); |
358 | 359 |
359 gcm_driver_ = gcm::CreateGCMDriverDesktop( | 360 gcm_driver_ = gcm::CreateGCMDriverDesktop( |
360 base::WrapUnique(new gcm::GCMClientFactory), GetLocalState(), store_path, | 361 base::WrapUnique(new gcm::GCMClientFactory), GetLocalState(), store_path, |
361 GetSystemURLRequestContext(), ::GetChannel(), | 362 GetSystemURLRequestContext(), ::GetChannel(), |
362 IOSChromeGCMProfileServiceFactory::GetProductCategoryForSubtypes(), | 363 IOSChromeGCMProfileServiceFactory::GetProductCategoryForSubtypes(), |
363 web::WebThread::GetTaskRunnerForThread(web::WebThread::UI), | 364 web::WebThread::GetTaskRunnerForThread(web::WebThread::UI), |
364 web::WebThread::GetTaskRunnerForThread(web::WebThread::IO), | 365 web::WebThread::GetTaskRunnerForThread(web::WebThread::IO), |
365 blocking_task_runner); | 366 blocking_task_runner); |
366 } | 367 } |
OLD | NEW |