| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 #include "chrome/browser/themes/theme_service_factory.h" | 68 #include "chrome/browser/themes/theme_service_factory.h" |
| 69 #include "chrome/browser/thumbnails/thumbnail_service_factory.h" | 69 #include "chrome/browser/thumbnails/thumbnail_service_factory.h" |
| 70 #include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h" | 70 #include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h" |
| 71 #include "chrome/browser/ui/find_bar/find_bar_state_factory.h" | 71 #include "chrome/browser/ui/find_bar/find_bar_state_factory.h" |
| 72 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" | 72 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" |
| 73 #include "chrome/browser/ui/tabs/pinned_tab_service_factory.h" | 73 #include "chrome/browser/ui/tabs/pinned_tab_service_factory.h" |
| 74 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h" | 74 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h" |
| 75 #include "chrome/browser/undo/bookmark_undo_service_factory.h" | 75 #include "chrome/browser/undo/bookmark_undo_service_factory.h" |
| 76 #include "chrome/browser/web_data_service_factory.h" | 76 #include "chrome/browser/web_data_service_factory.h" |
| 77 #include "chrome/common/features.h" | 77 #include "chrome/common/features.h" |
| 78 #include "components/offline_pages/features/features.h" |
| 78 #include "components/spellcheck/spellcheck_build_features.h" | 79 #include "components/spellcheck/spellcheck_build_features.h" |
| 79 #include "extensions/features/features.h" | 80 #include "extensions/features/features.h" |
| 80 #include "ppapi/features/features.h" | 81 #include "ppapi/features/features.h" |
| 81 #include "printing/features/features.h" | 82 #include "printing/features/features.h" |
| 82 | 83 |
| 83 #if BUILDFLAG(ENABLE_EXTENSIONS) | 84 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 84 #include "apps/browser_context_keyed_service_factories.h" | 85 #include "apps/browser_context_keyed_service_factories.h" |
| 85 #include "chrome/browser/apps/browser_context_keyed_service_factories.h" | 86 #include "chrome/browser/apps/browser_context_keyed_service_factories.h" |
| 86 #include "chrome/browser/extensions/api/networking_private/networking_private_ui
_delegate_factory_impl.h" | 87 #include "chrome/browser/extensions/api/networking_private/networking_private_ui
_delegate_factory_impl.h" |
| 87 #include "chrome/browser/extensions/browser_context_keyed_service_factories.h" | 88 #include "chrome/browser/extensions/browser_context_keyed_service_factories.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 #endif | 143 #endif |
| 143 | 144 |
| 144 #if BUILDFLAG(ENABLE_SPELLCHECK) | 145 #if BUILDFLAG(ENABLE_SPELLCHECK) |
| 145 #include "chrome/browser/spellchecker/spellcheck_factory.h" | 146 #include "chrome/browser/spellchecker/spellcheck_factory.h" |
| 146 #endif | 147 #endif |
| 147 | 148 |
| 148 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) | 149 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
| 149 #include "chrome/browser/printing/cloud_print/privet_notifications_factory.h" | 150 #include "chrome/browser/printing/cloud_print/privet_notifications_factory.h" |
| 150 #endif | 151 #endif |
| 151 | 152 |
| 153 #if BUILDFLAG(ENABLE_OFFLINE_PAGES) |
| 154 #include "chrome/browser/offline_pages/prefetch/prefetch_service_factory.h" |
| 155 #endif |
| 156 |
| 152 namespace chrome { | 157 namespace chrome { |
| 153 | 158 |
| 154 void AddProfilesExtraParts(ChromeBrowserMainParts* main_parts) { | 159 void AddProfilesExtraParts(ChromeBrowserMainParts* main_parts) { |
| 155 main_parts->AddParts(new ChromeBrowserMainExtraPartsProfiles()); | 160 main_parts->AddParts(new ChromeBrowserMainExtraPartsProfiles()); |
| 156 } | 161 } |
| 157 | 162 |
| 158 } // namespace chrome | 163 } // namespace chrome |
| 159 | 164 |
| 160 ChromeBrowserMainExtraPartsProfiles::ChromeBrowserMainExtraPartsProfiles() { | 165 ChromeBrowserMainExtraPartsProfiles::ChromeBrowserMainExtraPartsProfiles() { |
| 161 } | 166 } |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 #if BUILDFLAG(ENABLE_EXTENSIONS) | 252 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 248 HotwordServiceFactory::GetInstance(); | 253 HotwordServiceFactory::GetInstance(); |
| 249 #endif | 254 #endif |
| 250 HostContentSettingsMapFactory::GetInstance(); | 255 HostContentSettingsMapFactory::GetInstance(); |
| 251 InMemoryURLIndexFactory::GetInstance(); | 256 InMemoryURLIndexFactory::GetInstance(); |
| 252 invalidation::ProfileInvalidationProviderFactory::GetInstance(); | 257 invalidation::ProfileInvalidationProviderFactory::GetInstance(); |
| 253 InstantServiceFactory::GetInstance(); | 258 InstantServiceFactory::GetInstance(); |
| 254 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) | 259 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
| 255 cloud_print::PrivetNotificationServiceFactory::GetInstance(); | 260 cloud_print::PrivetNotificationServiceFactory::GetInstance(); |
| 256 #endif | 261 #endif |
| 262 #if BUILDFLAG(ENABLE_OFFLINE_PAGES) |
| 263 offline_pages::PrefetchServiceFactory::GetInstance(); |
| 264 #endif |
| 257 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) | 265 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) |
| 258 #if defined(OS_CHROMEOS) | 266 #if defined(OS_CHROMEOS) |
| 259 chromeos::SupervisedUserPasswordServiceFactory::GetInstance(); | 267 chromeos::SupervisedUserPasswordServiceFactory::GetInstance(); |
| 260 chromeos::ManagerPasswordServiceFactory::GetInstance(); | 268 chromeos::ManagerPasswordServiceFactory::GetInstance(); |
| 261 #endif | 269 #endif |
| 262 SupervisedUserServiceFactory::GetInstance(); | 270 SupervisedUserServiceFactory::GetInstance(); |
| 263 #if !defined(OS_ANDROID) | 271 #if !defined(OS_ANDROID) |
| 264 SupervisedUserSyncServiceFactory::GetInstance(); | 272 SupervisedUserSyncServiceFactory::GetInstance(); |
| 265 #endif | 273 #endif |
| 266 #endif | 274 #endif |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 UINetworkQualityEstimatorServiceFactory::GetInstance(); | 351 UINetworkQualityEstimatorServiceFactory::GetInstance(); |
| 344 #if !defined(OS_ANDROID) | 352 #if !defined(OS_ANDROID) |
| 345 UsbChooserContextFactory::GetInstance(); | 353 UsbChooserContextFactory::GetInstance(); |
| 346 #endif | 354 #endif |
| 347 WebDataServiceFactory::GetInstance(); | 355 WebDataServiceFactory::GetInstance(); |
| 348 } | 356 } |
| 349 | 357 |
| 350 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { | 358 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { |
| 351 EnsureBrowserContextKeyedServiceFactoriesBuilt(); | 359 EnsureBrowserContextKeyedServiceFactoriesBuilt(); |
| 352 } | 360 } |
| OLD | NEW |