| 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_core_service_factory.h" | 24 #include "chrome/browser/download/download_core_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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 #endif | 264 #endif |
| 263 #if BUILDFLAG(ENABLE_EXTENSIONS) | 265 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 264 #if defined(OS_CHROMEOS) || defined(OS_WIN) || defined(OS_MACOSX) | 266 #if defined(OS_CHROMEOS) || defined(OS_WIN) || defined(OS_MACOSX) |
| 265 std::unique_ptr<extensions::NetworkingPrivateUIDelegateFactoryImpl> | 267 std::unique_ptr<extensions::NetworkingPrivateUIDelegateFactoryImpl> |
| 266 networking_private_ui_delegate_factory( | 268 networking_private_ui_delegate_factory( |
| 267 new extensions::NetworkingPrivateUIDelegateFactoryImpl); | 269 new extensions::NetworkingPrivateUIDelegateFactoryImpl); |
| 268 extensions::NetworkingPrivateDelegateFactory::GetInstance() | 270 extensions::NetworkingPrivateDelegateFactory::GetInstance() |
| 269 ->SetUIDelegateFactory(std::move(networking_private_ui_delegate_factory)); | 271 ->SetUIDelegateFactory(std::move(networking_private_ui_delegate_factory)); |
| 270 #endif | 272 #endif |
| 271 #endif | 273 #endif |
| 274 if (MediaEngagementService::IsEnabled()) |
| 275 MediaEngagementServiceFactory::GetInstance(); |
| 272 media_router::MediaRouterFactory::GetInstance(); | 276 media_router::MediaRouterFactory::GetInstance(); |
| 273 #if !defined(OS_ANDROID) | 277 #if !defined(OS_ANDROID) |
| 274 media_router::MediaRouterUIServiceFactory::GetInstance(); | 278 media_router::MediaRouterUIServiceFactory::GetInstance(); |
| 275 #endif | 279 #endif |
| 276 #if !defined(OS_ANDROID) | 280 #if !defined(OS_ANDROID) |
| 277 MediaGalleriesPreferencesFactory::GetInstance(); | 281 MediaGalleriesPreferencesFactory::GetInstance(); |
| 278 NTPResourceCacheFactory::GetInstance(); | 282 NTPResourceCacheFactory::GetInstance(); |
| 279 #endif | 283 #endif |
| 280 ContentSuggestionsServiceFactory::GetInstance(); | 284 ContentSuggestionsServiceFactory::GetInstance(); |
| 281 PasswordStoreFactory::GetInstance(); | 285 PasswordStoreFactory::GetInstance(); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 UINetworkQualityEstimatorServiceFactory::GetInstance(); | 341 UINetworkQualityEstimatorServiceFactory::GetInstance(); |
| 338 #if !defined(OS_ANDROID) | 342 #if !defined(OS_ANDROID) |
| 339 UsbChooserContextFactory::GetInstance(); | 343 UsbChooserContextFactory::GetInstance(); |
| 340 #endif | 344 #endif |
| 341 WebDataServiceFactory::GetInstance(); | 345 WebDataServiceFactory::GetInstance(); |
| 342 } | 346 } |
| 343 | 347 |
| 344 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { | 348 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { |
| 345 EnsureBrowserContextKeyedServiceFactoriesBuilt(); | 349 EnsureBrowserContextKeyedServiceFactoriesBuilt(); |
| 346 } | 350 } |
| OLD | NEW |