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/path_service.h" | 14 #include "base/path_service.h" |
15 #include "base/prefs/pref_registry_simple.h" | |
16 #include "base/prefs/pref_service.h" | |
17 #include "base/time/default_tick_clock.h" | 15 #include "base/time/default_tick_clock.h" |
18 #include "base/tracked_objects.h" | 16 #include "base/tracked_objects.h" |
19 #include "components/component_updater/component_updater_service.h" | 17 #include "components/component_updater/component_updater_service.h" |
20 #include "components/component_updater/component_updater_service.h" | 18 #include "components/component_updater/component_updater_service.h" |
21 #include "components/gcm_driver/gcm_client_factory.h" | 19 #include "components/gcm_driver/gcm_client_factory.h" |
22 #include "components/gcm_driver/gcm_desktop_utils.h" | 20 #include "components/gcm_driver/gcm_desktop_utils.h" |
23 #include "components/gcm_driver/gcm_driver.h" | 21 #include "components/gcm_driver/gcm_driver.h" |
24 #include "components/history/core/browser/history_service.h" | 22 #include "components/history/core/browser/history_service.h" |
25 #include "components/keyed_service/core/service_access_type.h" | 23 #include "components/keyed_service/core/service_access_type.h" |
26 #include "components/metrics/metrics_pref_names.h" | 24 #include "components/metrics/metrics_pref_names.h" |
27 #include "components/metrics/metrics_service.h" | 25 #include "components/metrics/metrics_service.h" |
28 #include "components/metrics_services_manager/metrics_services_manager.h" | 26 #include "components/metrics_services_manager/metrics_services_manager.h" |
29 #include "components/net_log/chrome_net_log.h" | 27 #include "components/net_log/chrome_net_log.h" |
30 #include "components/network_time/network_time_tracker.h" | 28 #include "components/network_time/network_time_tracker.h" |
| 29 #include "components/prefs/pref_registry_simple.h" |
| 30 #include "components/prefs/pref_service.h" |
31 #include "components/translate/core/browser/translate_download_manager.h" | 31 #include "components/translate/core/browser/translate_download_manager.h" |
32 #include "components/update_client/configurator.h" | 32 #include "components/update_client/configurator.h" |
33 #include "components/update_client/update_query_params.h" | 33 #include "components/update_client/update_query_params.h" |
34 #include "components/variations/service/variations_service.h" | 34 #include "components/variations/service/variations_service.h" |
35 #include "components/web_resource/promo_resource_service.h" | 35 #include "components/web_resource/promo_resource_service.h" |
36 #include "components/web_resource/web_resource_pref_names.h" | 36 #include "components/web_resource/web_resource_pref_names.h" |
37 #include "ios/chrome/browser/chrome_paths.h" | 37 #include "ios/chrome/browser/chrome_paths.h" |
38 #include "ios/chrome/browser/chrome_switches.h" | 38 #include "ios/chrome/browser/chrome_switches.h" |
39 #include "ios/chrome/browser/component_updater/ios_component_updater_configurato
r.h" | 39 #include "ios/chrome/browser/component_updater/ios_component_updater_configurato
r.h" |
40 #include "ios/chrome/browser/history/history_service_factory.h" | 40 #include "ios/chrome/browser/history/history_service_factory.h" |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 worker_pool->GetSequenceToken(), | 385 worker_pool->GetSequenceToken(), |
386 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)); | 386 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)); |
387 | 387 |
388 gcm_driver_ = gcm::CreateGCMDriverDesktop( | 388 gcm_driver_ = gcm::CreateGCMDriverDesktop( |
389 make_scoped_ptr(new gcm::GCMClientFactory), GetLocalState(), store_path, | 389 make_scoped_ptr(new gcm::GCMClientFactory), GetLocalState(), store_path, |
390 GetSystemURLRequestContext(), ::GetChannel(), | 390 GetSystemURLRequestContext(), ::GetChannel(), |
391 web::WebThread::GetTaskRunnerForThread(web::WebThread::UI), | 391 web::WebThread::GetTaskRunnerForThread(web::WebThread::UI), |
392 web::WebThread::GetTaskRunnerForThread(web::WebThread::IO), | 392 web::WebThread::GetTaskRunnerForThread(web::WebThread::IO), |
393 blocking_task_runner); | 393 blocking_task_runner); |
394 } | 394 } |
OLD | NEW |