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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 #include "chrome/browser/chromeos/policy/policy_cert_service_factory.h" | 94 #include "chrome/browser/chromeos/policy/policy_cert_service_factory.h" |
95 #include "chrome/browser/chromeos/policy/recommendation_restorer_factory.h" | 95 #include "chrome/browser/chromeos/policy/recommendation_restorer_factory.h" |
96 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chrom
eos.h" | 96 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chrom
eos.h" |
97 #include "chrome/browser/chromeos/policy/user_cloud_policy_token_forwarder_facto
ry.h" | 97 #include "chrome/browser/chromeos/policy/user_cloud_policy_token_forwarder_facto
ry.h" |
98 #include "chrome/browser/chromeos/policy/user_network_configuration_updater_fact
ory.h" | 98 #include "chrome/browser/chromeos/policy/user_network_configuration_updater_fact
ory.h" |
99 #else | 99 #else |
100 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" | 100 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" |
101 #include "chrome/browser/policy/cloud/user_policy_signin_service_factory.h" | 101 #include "chrome/browser/policy/cloud/user_policy_signin_service_factory.h" |
102 #endif | 102 #endif |
103 | 103 |
104 #if defined(ENABLE_SUPERVISED_USERS) | 104 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) |
105 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service_fac
tory.h" | 105 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service_fac
tory.h" |
106 #include "chrome/browser/supervised_user/supervised_user_service_factory.h" | 106 #include "chrome/browser/supervised_user/supervised_user_service_factory.h" |
107 #if defined(OS_CHROMEOS) | 107 #if defined(OS_CHROMEOS) |
108 #include "chrome/browser/supervised_user/chromeos/manager_password_service_facto
ry.h" | 108 #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" | 109 #include "chrome/browser/supervised_user/chromeos/supervised_user_password_servi
ce_factory.h" |
110 #endif | 110 #endif |
111 #endif | 111 #endif |
112 | 112 |
113 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) | 113 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) |
114 #include "chrome/browser/signin/cross_device_promo_factory.h" | 114 #include "chrome/browser/signin/cross_device_promo_factory.h" |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 #if defined(ENABLE_EXTENSIONS) | 240 #if defined(ENABLE_EXTENSIONS) |
241 HotwordServiceFactory::GetInstance(); | 241 HotwordServiceFactory::GetInstance(); |
242 #endif | 242 #endif |
243 HostContentSettingsMapFactory::GetInstance(); | 243 HostContentSettingsMapFactory::GetInstance(); |
244 InMemoryURLIndexFactory::GetInstance(); | 244 InMemoryURLIndexFactory::GetInstance(); |
245 invalidation::ProfileInvalidationProviderFactory::GetInstance(); | 245 invalidation::ProfileInvalidationProviderFactory::GetInstance(); |
246 InstantServiceFactory::GetInstance(); | 246 InstantServiceFactory::GetInstance(); |
247 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) | 247 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
248 cloud_print::PrivetNotificationServiceFactory::GetInstance(); | 248 cloud_print::PrivetNotificationServiceFactory::GetInstance(); |
249 #endif | 249 #endif |
250 #if defined(ENABLE_SUPERVISED_USERS) | 250 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) |
251 #if defined(OS_CHROMEOS) | 251 #if defined(OS_CHROMEOS) |
252 chromeos::SupervisedUserPasswordServiceFactory::GetInstance(); | 252 chromeos::SupervisedUserPasswordServiceFactory::GetInstance(); |
253 chromeos::ManagerPasswordServiceFactory::GetInstance(); | 253 chromeos::ManagerPasswordServiceFactory::GetInstance(); |
254 #endif | 254 #endif |
255 SupervisedUserServiceFactory::GetInstance(); | 255 SupervisedUserServiceFactory::GetInstance(); |
256 #if !defined(OS_ANDROID) | 256 #if !defined(OS_ANDROID) |
257 SupervisedUserSyncServiceFactory::GetInstance(); | 257 SupervisedUserSyncServiceFactory::GetInstance(); |
258 #endif | 258 #endif |
259 #endif | 259 #endif |
260 #if defined(ENABLE_EXTENSIONS) | 260 #if defined(ENABLE_EXTENSIONS) |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 policy::SchemaRegistryServiceFactory::GetInstance(); | 308 policy::SchemaRegistryServiceFactory::GetInstance(); |
309 policy::UserCloudPolicyInvalidatorFactory::GetInstance(); | 309 policy::UserCloudPolicyInvalidatorFactory::GetInstance(); |
310 predictors::AutocompleteActionPredictorFactory::GetInstance(); | 310 predictors::AutocompleteActionPredictorFactory::GetInstance(); |
311 predictors::PredictorDatabaseFactory::GetInstance(); | 311 predictors::PredictorDatabaseFactory::GetInstance(); |
312 predictors::ResourcePrefetchPredictorFactory::GetInstance(); | 312 predictors::ResourcePrefetchPredictorFactory::GetInstance(); |
313 prerender::PrerenderLinkManagerFactory::GetInstance(); | 313 prerender::PrerenderLinkManagerFactory::GetInstance(); |
314 prerender::PrerenderManagerFactory::GetInstance(); | 314 prerender::PrerenderManagerFactory::GetInstance(); |
315 prerender::PrerenderMessageFilter::EnsureShutdownNotifierFactoryBuilt(); | 315 prerender::PrerenderMessageFilter::EnsureShutdownNotifierFactoryBuilt(); |
316 ProfileSyncServiceFactory::GetInstance(); | 316 ProfileSyncServiceFactory::GetInstance(); |
317 ProtocolHandlerRegistryFactory::GetInstance(); | 317 ProtocolHandlerRegistryFactory::GetInstance(); |
318 #if defined(ENABLE_SESSION_SERVICE) | 318 #if BUILDFLAG(ENABLE_SESSION_SERVICE) |
319 SessionServiceFactory::GetInstance(); | 319 SessionServiceFactory::GetInstance(); |
320 #endif | 320 #endif |
321 ShortcutsBackendFactory::GetInstance(); | 321 ShortcutsBackendFactory::GetInstance(); |
322 SigninManagerFactory::GetInstance(); | 322 SigninManagerFactory::GetInstance(); |
323 | 323 |
324 if (SiteEngagementService::IsEnabled()) | 324 if (SiteEngagementService::IsEnabled()) |
325 SiteEngagementServiceFactory::GetInstance(); | 325 SiteEngagementServiceFactory::GetInstance(); |
326 | 326 |
327 #if defined(ENABLE_SPELLCHECK) | 327 #if defined(ENABLE_SPELLCHECK) |
328 SpellcheckServiceFactory::GetInstance(); | 328 SpellcheckServiceFactory::GetInstance(); |
(...skipping 11 matching lines...) Expand all Loading... |
340 #endif | 340 #endif |
341 #if !defined(OS_ANDROID) | 341 #if !defined(OS_ANDROID) |
342 UsbChooserContextFactory::GetInstance(); | 342 UsbChooserContextFactory::GetInstance(); |
343 #endif | 343 #endif |
344 WebDataServiceFactory::GetInstance(); | 344 WebDataServiceFactory::GetInstance(); |
345 } | 345 } |
346 | 346 |
347 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { | 347 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { |
348 EnsureBrowserContextKeyedServiceFactoriesBuilt(); | 348 EnsureBrowserContextKeyedServiceFactoriesBuilt(); |
349 } | 349 } |
OLD | NEW |