| 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 <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "chrome/browser/data_use_measurement/chrome_data_use_ascriber_service_f
actory.h" | 21 #include "chrome/browser/data_use_measurement/chrome_data_use_ascriber_service_f
actory.h" |
| 22 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" | 22 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" |
| 23 #include "chrome/browser/domain_reliability/service_factory.h" | 23 #include "chrome/browser/domain_reliability/service_factory.h" |
| 24 #include "chrome/browser/download/download_service_factory.h" | 24 #include "chrome/browser/download/download_service_factory.h" |
| 25 #include "chrome/browser/engagement/site_engagement_service.h" | 25 #include "chrome/browser/engagement/site_engagement_service.h" |
| 26 #include "chrome/browser/engagement/site_engagement_service_factory.h" | 26 #include "chrome/browser/engagement/site_engagement_service_factory.h" |
| 27 #include "chrome/browser/favicon/favicon_service_factory.h" | 27 #include "chrome/browser/favicon/favicon_service_factory.h" |
| 28 #include "chrome/browser/google/google_url_tracker_factory.h" | 28 #include "chrome/browser/google/google_url_tracker_factory.h" |
| 29 #include "chrome/browser/history/history_service_factory.h" | 29 #include "chrome/browser/history/history_service_factory.h" |
| 30 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" | 30 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" |
| 31 #include "chrome/browser/media/media_engagement_service.h" |
| 32 #include "chrome/browser/media/media_engagement_service_factory.h" |
| 31 #include "chrome/browser/media/router/media_router_factory.h" | 33 #include "chrome/browser/media/router/media_router_factory.h" |
| 32 #include "chrome/browser/media_galleries/media_galleries_preferences_factory.h" | 34 #include "chrome/browser/media_galleries/media_galleries_preferences_factory.h" |
| 33 #include "chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.h" | 35 #include "chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.h" |
| 34 #include "chrome/browser/notifications/extension_welcome_notification_factory.h" | 36 #include "chrome/browser/notifications/extension_welcome_notification_factory.h" |
| 35 #include "chrome/browser/notifications/notifier_state_tracker_factory.h" | 37 #include "chrome/browser/notifications/notifier_state_tracker_factory.h" |
| 36 #include "chrome/browser/ntp_snippets/content_suggestions_service_factory.h" | 38 #include "chrome/browser/ntp_snippets/content_suggestions_service_factory.h" |
| 37 #include "chrome/browser/password_manager/password_manager_setting_migrator_serv
ice_factory.h" | 39 #include "chrome/browser/password_manager/password_manager_setting_migrator_serv
ice_factory.h" |
| 38 #include "chrome/browser/password_manager/password_store_factory.h" | 40 #include "chrome/browser/password_manager/password_store_factory.h" |
| 39 #include "chrome/browser/plugins/plugin_prefs_factory.h" | 41 #include "chrome/browser/plugins/plugin_prefs_factory.h" |
| 40 #include "chrome/browser/policy/cloud/policy_header_service_factory.h" | 42 #include "chrome/browser/policy/cloud/policy_header_service_factory.h" |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 #endif | 263 #endif |
| 262 #if BUILDFLAG(ENABLE_EXTENSIONS) | 264 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 263 #if defined(OS_CHROMEOS) || defined(OS_WIN) || defined(OS_MACOSX) | 265 #if defined(OS_CHROMEOS) || defined(OS_WIN) || defined(OS_MACOSX) |
| 264 std::unique_ptr<extensions::NetworkingPrivateUIDelegateFactoryImpl> | 266 std::unique_ptr<extensions::NetworkingPrivateUIDelegateFactoryImpl> |
| 265 networking_private_ui_delegate_factory( | 267 networking_private_ui_delegate_factory( |
| 266 new extensions::NetworkingPrivateUIDelegateFactoryImpl); | 268 new extensions::NetworkingPrivateUIDelegateFactoryImpl); |
| 267 extensions::NetworkingPrivateDelegateFactory::GetInstance() | 269 extensions::NetworkingPrivateDelegateFactory::GetInstance() |
| 268 ->SetUIDelegateFactory(std::move(networking_private_ui_delegate_factory)); | 270 ->SetUIDelegateFactory(std::move(networking_private_ui_delegate_factory)); |
| 269 #endif | 271 #endif |
| 270 #endif | 272 #endif |
| 273 if (MediaEngagementService::IsEnabled()) |
| 274 MediaEngagementServiceFactory::GetInstance(); |
| 271 media_router::MediaRouterFactory::GetInstance(); | 275 media_router::MediaRouterFactory::GetInstance(); |
| 272 #if !defined(OS_ANDROID) | 276 #if !defined(OS_ANDROID) |
| 273 media_router::MediaRouterUIServiceFactory::GetInstance(); | 277 media_router::MediaRouterUIServiceFactory::GetInstance(); |
| 274 #endif | 278 #endif |
| 275 #if !defined(OS_ANDROID) | 279 #if !defined(OS_ANDROID) |
| 276 MediaGalleriesPreferencesFactory::GetInstance(); | 280 MediaGalleriesPreferencesFactory::GetInstance(); |
| 277 NTPResourceCacheFactory::GetInstance(); | 281 NTPResourceCacheFactory::GetInstance(); |
| 278 #endif | 282 #endif |
| 279 ContentSuggestionsServiceFactory::GetInstance(); | 283 ContentSuggestionsServiceFactory::GetInstance(); |
| 280 PasswordStoreFactory::GetInstance(); | 284 PasswordStoreFactory::GetInstance(); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 #endif | 339 #endif |
| 336 #if !defined(OS_ANDROID) | 340 #if !defined(OS_ANDROID) |
| 337 UsbChooserContextFactory::GetInstance(); | 341 UsbChooserContextFactory::GetInstance(); |
| 338 #endif | 342 #endif |
| 339 WebDataServiceFactory::GetInstance(); | 343 WebDataServiceFactory::GetInstance(); |
| 340 } | 344 } |
| 341 | 345 |
| 342 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { | 346 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { |
| 343 EnsureBrowserContextKeyedServiceFactoriesBuilt(); | 347 EnsureBrowserContextKeyedServiceFactoriesBuilt(); |
| 344 } | 348 } |
| OLD | NEW |