OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h" | 5 #include "chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "chrome/browser/autocomplete/in_memory_url_index_factory.h" | 10 #include "chrome/browser/autocomplete/in_memory_url_index_factory.h" |
11 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h" | 11 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h" |
12 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 12 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
13 #include "chrome/browser/background/background_contents_service_factory.h" | 13 #include "chrome/browser/background/background_contents_service_factory.h" |
14 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 14 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
15 #include "chrome/browser/browsing_data/browsing_data_remover_factory.h" | 15 #include "chrome/browser/browsing_data/browsing_data_remover_factory.h" |
16 #include "chrome/browser/chrome_browser_main.h" | 16 #include "chrome/browser/chrome_browser_main.h" |
17 #include "chrome/browser/content_settings/cookie_settings_factory.h" | 17 #include "chrome/browser/content_settings/cookie_settings_factory.h" |
18 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 18 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
19 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" | 19 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" |
20 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" | 20 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" |
21 #include "chrome/browser/domain_reliability/service_factory.h" | 21 #include "chrome/browser/domain_reliability/service_factory.h" |
22 #include "chrome/browser/download/download_service_factory.h" | 22 #include "chrome/browser/download/download_service_factory.h" |
23 #include "chrome/browser/engagement/site_engagement_service.h" | 23 #include "chrome/browser/engagement/site_engagement_service.h" |
24 #include "chrome/browser/engagement/site_engagement_service_factory.h" | 24 #include "chrome/browser/engagement/site_engagement_service_factory.h" |
25 #include "chrome/browser/favicon/favicon_service_factory.h" | 25 #include "chrome/browser/favicon/favicon_service_factory.h" |
26 #include "chrome/browser/geolocation/geolocation_permission_context_factory.h" | |
27 #include "chrome/browser/google/google_url_tracker_factory.h" | 26 #include "chrome/browser/google/google_url_tracker_factory.h" |
28 #include "chrome/browser/history/history_service_factory.h" | 27 #include "chrome/browser/history/history_service_factory.h" |
29 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" | 28 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" |
30 #include "chrome/browser/media_galleries/media_galleries_preferences_factory.h" | 29 #include "chrome/browser/media_galleries/media_galleries_preferences_factory.h" |
31 #include "chrome/browser/notifications/extension_welcome_notification_factory.h" | 30 #include "chrome/browser/notifications/extension_welcome_notification_factory.h" |
32 #include "chrome/browser/notifications/notification_permission_context_factory.h
" | |
33 #include "chrome/browser/notifications/notifier_state_tracker_factory.h" | 31 #include "chrome/browser/notifications/notifier_state_tracker_factory.h" |
34 #include "chrome/browser/ntp_snippets/ntp_snippets_service_factory.h" | 32 #include "chrome/browser/ntp_snippets/ntp_snippets_service_factory.h" |
35 #include "chrome/browser/password_manager/password_manager_setting_migrator_serv
ice_factory.h" | 33 #include "chrome/browser/password_manager/password_manager_setting_migrator_serv
ice_factory.h" |
36 #include "chrome/browser/password_manager/password_store_factory.h" | 34 #include "chrome/browser/password_manager/password_store_factory.h" |
37 #include "chrome/browser/plugins/plugin_prefs_factory.h" | 35 #include "chrome/browser/plugins/plugin_prefs_factory.h" |
38 #include "chrome/browser/policy/cloud/policy_header_service_factory.h" | 36 #include "chrome/browser/policy/cloud/policy_header_service_factory.h" |
39 #include "chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.h" | 37 #include "chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.h" |
40 #include "chrome/browser/policy/profile_policy_connector_factory.h" | 38 #include "chrome/browser/policy/profile_policy_connector_factory.h" |
41 #include "chrome/browser/policy/schema_registry_service_factory.h" | 39 #include "chrome/browser/policy/schema_registry_service_factory.h" |
42 #include "chrome/browser/predictors/autocomplete_action_predictor_factory.h" | 40 #include "chrome/browser/predictors/autocomplete_action_predictor_factory.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 101 |
104 #if defined(ENABLE_SUPERVISED_USERS) | 102 #if defined(ENABLE_SUPERVISED_USERS) |
105 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service_fac
tory.h" | 103 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service_fac
tory.h" |
106 #include "chrome/browser/supervised_user/supervised_user_service_factory.h" | 104 #include "chrome/browser/supervised_user/supervised_user_service_factory.h" |
107 #if defined(OS_CHROMEOS) | 105 #if defined(OS_CHROMEOS) |
108 #include "chrome/browser/supervised_user/chromeos/manager_password_service_facto
ry.h" | 106 #include "chrome/browser/supervised_user/chromeos/manager_password_service_facto
ry.h" |
109 #include "chrome/browser/supervised_user/chromeos/supervised_user_password_servi
ce_factory.h" | 107 #include "chrome/browser/supervised_user/chromeos/supervised_user_password_servi
ce_factory.h" |
110 #endif | 108 #endif |
111 #endif | 109 #endif |
112 | 110 |
113 #if defined(OS_ANDROID) || defined(OS_CHROMEOS) | 111 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) |
114 #include "chrome/browser/media/protected_media_identifier_permission_context_fac
tory.h" | |
115 #else | |
116 #include "chrome/browser/signin/cross_device_promo_factory.h" | 112 #include "chrome/browser/signin/cross_device_promo_factory.h" |
117 #endif | 113 #endif |
118 | 114 |
119 #if defined(OS_CHROMEOS) | 115 #if defined(OS_CHROMEOS) |
120 #include "chrome/browser/chromeos/printer_detector/printer_detector_factory.h" | 116 #include "chrome/browser/chromeos/printer_detector/printer_detector_factory.h" |
121 #include "chrome/browser/extensions/api/platform_keys/verify_trust_api.h" | 117 #include "chrome/browser/extensions/api/platform_keys/verify_trust_api.h" |
122 #endif | 118 #endif |
123 | 119 |
124 #if defined(OS_ANDROID) | 120 #if defined(OS_ANDROID) |
125 #include "chrome/browser/android/data_usage/data_use_ui_tab_model_factory.h" | 121 #include "chrome/browser/android/data_usage/data_use_ui_tab_model_factory.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 #endif | 184 #endif |
189 BookmarkModelFactory::GetInstance(); | 185 BookmarkModelFactory::GetInstance(); |
190 BookmarkUndoServiceFactory::GetInstance(); | 186 BookmarkUndoServiceFactory::GetInstance(); |
191 BrowsingDataRemoverFactory::GetInstance(); | 187 BrowsingDataRemoverFactory::GetInstance(); |
192 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) | 188 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
193 CaptivePortalServiceFactory::GetInstance(); | 189 CaptivePortalServiceFactory::GetInstance(); |
194 #endif | 190 #endif |
195 #if defined(OS_ANDROID) | 191 #if defined(OS_ANDROID) |
196 chrome::android::DataUseUITabModelFactory::GetInstance(); | 192 chrome::android::DataUseUITabModelFactory::GetInstance(); |
197 #endif | 193 #endif |
198 GeolocationPermissionContextFactory::GetInstance(); | |
199 #if defined(OS_ANDROID) || defined(OS_CHROMEOS) | |
200 ProtectedMediaIdentifierPermissionContextFactory::GetInstance(); | |
201 #endif | |
202 #if defined(ENABLE_PRINT_PREVIEW) | 194 #if defined(ENABLE_PRINT_PREVIEW) |
203 CloudPrintProxyServiceFactory::GetInstance(); | 195 CloudPrintProxyServiceFactory::GetInstance(); |
204 #endif | 196 #endif |
205 CookieSettingsFactory::GetInstance(); | 197 CookieSettingsFactory::GetInstance(); |
206 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) | 198 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) |
207 CrossDevicePromoFactory::GetInstance(); | 199 CrossDevicePromoFactory::GetInstance(); |
208 #endif | 200 #endif |
209 #if defined(ENABLE_NOTIFICATIONS) | 201 #if defined(ENABLE_NOTIFICATIONS) |
210 #if defined(ENABLE_EXTENSIONS) | 202 #if defined(ENABLE_EXTENSIONS) |
211 ExtensionWelcomeNotificationFactory::GetInstance(); | 203 ExtensionWelcomeNotificationFactory::GetInstance(); |
212 #endif | 204 #endif |
213 NotificationPermissionContextFactory::GetInstance(); | |
214 NotifierStateTrackerFactory::GetInstance(); | 205 NotifierStateTrackerFactory::GetInstance(); |
215 #endif // defined(ENABLE_NOTIFICATIONS) | 206 #endif // defined(ENABLE_NOTIFICATIONS) |
216 dom_distiller::DomDistillerServiceFactory::GetInstance(); | 207 dom_distiller::DomDistillerServiceFactory::GetInstance(); |
217 domain_reliability::DomainReliabilityServiceFactory::GetInstance(); | 208 domain_reliability::DomainReliabilityServiceFactory::GetInstance(); |
218 DownloadServiceFactory::GetInstance(); | 209 DownloadServiceFactory::GetInstance(); |
219 #if defined(ENABLE_EXTENSIONS) | 210 #if defined(ENABLE_EXTENSIONS) |
220 EasyUnlockServiceFactory::GetInstance(); | 211 EasyUnlockServiceFactory::GetInstance(); |
221 EnhancedBookmarkKeyServiceFactory::GetInstance(); | 212 EnhancedBookmarkKeyServiceFactory::GetInstance(); |
222 #endif | 213 #endif |
223 #if defined(OS_CHROMEOS) | 214 #if defined(OS_CHROMEOS) |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 #endif | 322 #endif |
332 #if !defined(OS_ANDROID) | 323 #if !defined(OS_ANDROID) |
333 UsbChooserContextFactory::GetInstance(); | 324 UsbChooserContextFactory::GetInstance(); |
334 #endif | 325 #endif |
335 WebDataServiceFactory::GetInstance(); | 326 WebDataServiceFactory::GetInstance(); |
336 } | 327 } |
337 | 328 |
338 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { | 329 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { |
339 EnsureBrowserContextKeyedServiceFactoriesBuilt(); | 330 EnsureBrowserContextKeyedServiceFactoriesBuilt(); |
340 } | 331 } |
OLD | NEW |