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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 #include "chrome/browser/undo/bookmark_undo_service_factory.h" | 71 #include "chrome/browser/undo/bookmark_undo_service_factory.h" |
72 #include "chrome/browser/web_data_service_factory.h" | 72 #include "chrome/browser/web_data_service_factory.h" |
73 #include "chrome/common/features.h" | 73 #include "chrome/common/features.h" |
74 #include "components/spellcheck/spellcheck_build_features.h" | 74 #include "components/spellcheck/spellcheck_build_features.h" |
75 #include "extensions/features/features.h" | 75 #include "extensions/features/features.h" |
76 #include "ppapi/features/features.h" | 76 #include "ppapi/features/features.h" |
77 #include "printing/features/features.h" | 77 #include "printing/features/features.h" |
78 | 78 |
79 #if BUILDFLAG(ENABLE_EXTENSIONS) | 79 #if BUILDFLAG(ENABLE_EXTENSIONS) |
80 #include "apps/browser_context_keyed_service_factories.h" | 80 #include "apps/browser_context_keyed_service_factories.h" |
81 #include "chrome/browser/apps/shortcut_manager_factory.h" | 81 #include "chrome/browser/apps/browser_context_keyed_service_factories.h" |
82 #include "chrome/browser/extensions/api/networking_private/networking_private_ui
_delegate_factory_impl.h" | 82 #include "chrome/browser/extensions/api/networking_private/networking_private_ui
_delegate_factory_impl.h" |
83 #include "chrome/browser/extensions/browser_context_keyed_service_factories.h" | 83 #include "chrome/browser/extensions/browser_context_keyed_service_factories.h" |
84 #include "chrome/browser/extensions/extension_management.h" | 84 #include "chrome/browser/extensions/extension_management.h" |
85 #include "chrome/browser/search/hotword_service_factory.h" | 85 #include "chrome/browser/search/hotword_service_factory.h" |
86 #include "chrome/browser/signin/easy_unlock_service_factory.h" | 86 #include "chrome/browser/signin/easy_unlock_service_factory.h" |
87 #include "chrome/browser/ui/bookmarks/enhanced_bookmark_key_service_factory.h" | 87 #include "chrome/browser/ui/bookmarks/enhanced_bookmark_key_service_factory.h" |
88 #include "extensions/browser/api/networking_private/networking_private_delegate_
factory.h" | 88 #include "extensions/browser/api/networking_private/networking_private_delegate_
factory.h" |
89 #include "extensions/browser/browser_context_keyed_service_factories.h" | 89 #include "extensions/browser/browser_context_keyed_service_factories.h" |
90 #endif | 90 #endif |
91 | 91 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 // FooServiceFactory here will scale or is desirable long term. | 175 // FooServiceFactory here will scale or is desirable long term. |
176 // | 176 // |
177 // static | 177 // static |
178 void ChromeBrowserMainExtraPartsProfiles:: | 178 void ChromeBrowserMainExtraPartsProfiles:: |
179 EnsureBrowserContextKeyedServiceFactoriesBuilt() { | 179 EnsureBrowserContextKeyedServiceFactoriesBuilt() { |
180 #if BUILDFLAG(ENABLE_EXTENSIONS) | 180 #if BUILDFLAG(ENABLE_EXTENSIONS) |
181 apps::EnsureBrowserContextKeyedServiceFactoriesBuilt(); | 181 apps::EnsureBrowserContextKeyedServiceFactoriesBuilt(); |
182 extensions::EnsureBrowserContextKeyedServiceFactoriesBuilt(); | 182 extensions::EnsureBrowserContextKeyedServiceFactoriesBuilt(); |
183 extensions::ExtensionManagementFactory::GetInstance(); | 183 extensions::ExtensionManagementFactory::GetInstance(); |
184 chrome_extensions::EnsureBrowserContextKeyedServiceFactoriesBuilt(); | 184 chrome_extensions::EnsureBrowserContextKeyedServiceFactoriesBuilt(); |
185 AppShortcutManagerFactory::GetInstance(); | 185 chrome_apps::EnsureBrowserContextKeyedServiceFactoriesBuilt(); |
186 #endif | 186 #endif |
187 | 187 |
188 #if BUILDFLAG(ENABLE_APP_LIST) | 188 #if BUILDFLAG(ENABLE_APP_LIST) |
189 app_list::AppListSyncableServiceFactory::GetInstance(); | 189 app_list::AppListSyncableServiceFactory::GetInstance(); |
190 #endif | 190 #endif |
191 | 191 |
192 AboutSigninInternalsFactory::GetInstance(); | 192 AboutSigninInternalsFactory::GetInstance(); |
193 AccountInvestigatorFactory::GetInstance(); | 193 AccountInvestigatorFactory::GetInstance(); |
194 AccountTrackerServiceFactory::GetInstance(); | 194 AccountTrackerServiceFactory::GetInstance(); |
195 AccountFetcherServiceFactory::GetInstance(); | 195 AccountFetcherServiceFactory::GetInstance(); |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 #endif | 342 #endif |
343 #if !defined(OS_ANDROID) | 343 #if !defined(OS_ANDROID) |
344 UsbChooserContextFactory::GetInstance(); | 344 UsbChooserContextFactory::GetInstance(); |
345 #endif | 345 #endif |
346 WebDataServiceFactory::GetInstance(); | 346 WebDataServiceFactory::GetInstance(); |
347 } | 347 } |
348 | 348 |
349 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { | 349 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { |
350 EnsureBrowserContextKeyedServiceFactoriesBuilt(); | 350 EnsureBrowserContextKeyedServiceFactoriesBuilt(); |
351 } | 351 } |
OLD | NEW |