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 "chrome/browser/autocomplete/in_memory_url_index_factory.h" | 7 #include "chrome/browser/autocomplete/in_memory_url_index_factory.h" |
8 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h" | 8 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h" |
9 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 9 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
10 #include "chrome/browser/background/background_contents_service_factory.h" | 10 #include "chrome/browser/background/background_contents_service_factory.h" |
11 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 11 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
12 #include "chrome/browser/chrome_browser_main.h" | 12 #include "chrome/browser/chrome_browser_main.h" |
13 #include "chrome/browser/content_settings/cookie_settings.h" | 13 #include "chrome/browser/content_settings/cookie_settings.h" |
14 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" | 14 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" |
15 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" | 15 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" |
16 #include "chrome/browser/domain_reliability/service_factory.h" | 16 #include "chrome/browser/domain_reliability/service_factory.h" |
17 #include "chrome/browser/download/download_service_factory.h" | 17 #include "chrome/browser/download/download_service_factory.h" |
| 18 #include "chrome/browser/engagement/site_engagement_service.h" |
| 19 #include "chrome/browser/engagement/site_engagement_service_factory.h" |
18 #include "chrome/browser/favicon/favicon_service_factory.h" | 20 #include "chrome/browser/favicon/favicon_service_factory.h" |
19 #include "chrome/browser/geolocation/geolocation_permission_context_factory.h" | 21 #include "chrome/browser/geolocation/geolocation_permission_context_factory.h" |
20 #include "chrome/browser/google/google_url_tracker_factory.h" | 22 #include "chrome/browser/google/google_url_tracker_factory.h" |
21 #include "chrome/browser/history/history_service_factory.h" | 23 #include "chrome/browser/history/history_service_factory.h" |
22 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" | 24 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" |
23 #include "chrome/browser/media_galleries/media_galleries_preferences_factory.h" | 25 #include "chrome/browser/media_galleries/media_galleries_preferences_factory.h" |
24 #include "chrome/browser/notifications/desktop_notification_service_factory.h" | 26 #include "chrome/browser/notifications/desktop_notification_service_factory.h" |
25 #include "chrome/browser/password_manager/password_store_factory.h" | 27 #include "chrome/browser/password_manager/password_store_factory.h" |
26 #include "chrome/browser/plugins/plugin_prefs_factory.h" | 28 #include "chrome/browser/plugins/plugin_prefs_factory.h" |
27 #include "chrome/browser/policy/profile_policy_connector_factory.h" | 29 #include "chrome/browser/policy/profile_policy_connector_factory.h" |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 prerender::PrerenderLinkManagerFactory::GetInstance(); | 271 prerender::PrerenderLinkManagerFactory::GetInstance(); |
270 prerender::PrerenderManagerFactory::GetInstance(); | 272 prerender::PrerenderManagerFactory::GetInstance(); |
271 prerender::PrerenderMessageFilter::EnsureShutdownNotifierFactoryBuilt(); | 273 prerender::PrerenderMessageFilter::EnsureShutdownNotifierFactoryBuilt(); |
272 ProfileSyncServiceFactory::GetInstance(); | 274 ProfileSyncServiceFactory::GetInstance(); |
273 ProtocolHandlerRegistryFactory::GetInstance(); | 275 ProtocolHandlerRegistryFactory::GetInstance(); |
274 #if defined(ENABLE_SESSION_SERVICE) | 276 #if defined(ENABLE_SESSION_SERVICE) |
275 SessionServiceFactory::GetInstance(); | 277 SessionServiceFactory::GetInstance(); |
276 #endif | 278 #endif |
277 ShortcutsBackendFactory::GetInstance(); | 279 ShortcutsBackendFactory::GetInstance(); |
278 SigninManagerFactory::GetInstance(); | 280 SigninManagerFactory::GetInstance(); |
| 281 |
| 282 if (SiteEngagementService::IsEnabled()) |
| 283 SiteEngagementServiceFactory::GetInstance(); |
| 284 |
279 #if defined(ENABLE_SPELLCHECK) | 285 #if defined(ENABLE_SPELLCHECK) |
280 SpellcheckServiceFactory::GetInstance(); | 286 SpellcheckServiceFactory::GetInstance(); |
281 #endif | 287 #endif |
282 suggestions::SuggestionsServiceFactory::GetInstance(); | 288 suggestions::SuggestionsServiceFactory::GetInstance(); |
283 ThumbnailServiceFactory::GetInstance(); | 289 ThumbnailServiceFactory::GetInstance(); |
284 TabRestoreServiceFactory::GetInstance(); | 290 TabRestoreServiceFactory::GetInstance(); |
285 TemplateURLFetcherFactory::GetInstance(); | 291 TemplateURLFetcherFactory::GetInstance(); |
286 TemplateURLServiceFactory::GetInstance(); | 292 TemplateURLServiceFactory::GetInstance(); |
287 #if defined(ENABLE_THEMES) | 293 #if defined(ENABLE_THEMES) |
288 ThemeServiceFactory::GetInstance(); | 294 ThemeServiceFactory::GetInstance(); |
289 #endif | 295 #endif |
290 WebDataServiceFactory::GetInstance(); | 296 WebDataServiceFactory::GetInstance(); |
291 } | 297 } |
292 | 298 |
293 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { | 299 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { |
294 EnsureBrowserContextKeyedServiceFactoriesBuilt(); | 300 EnsureBrowserContextKeyedServiceFactoriesBuilt(); |
295 } | 301 } |
OLD | NEW |