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 "chrome/browser/autocomplete/shortcuts_backend_factory.h" | 7 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h" |
8 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 8 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
9 #include "chrome/browser/background/background_contents_service_factory.h" | 9 #include "chrome/browser/background/background_contents_service_factory.h" |
10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "chrome/browser/search/instant_service_factory.h" | 33 #include "chrome/browser/search/instant_service_factory.h" |
34 #include "chrome/browser/search_engines/template_url_fetcher_factory.h" | 34 #include "chrome/browser/search_engines/template_url_fetcher_factory.h" |
35 #include "chrome/browser/search_engines/template_url_service_factory.h" | 35 #include "chrome/browser/search_engines/template_url_service_factory.h" |
36 #include "chrome/browser/sessions/session_service_factory.h" | 36 #include "chrome/browser/sessions/session_service_factory.h" |
37 #include "chrome/browser/sessions/tab_restore_service_factory.h" | 37 #include "chrome/browser/sessions/tab_restore_service_factory.h" |
38 #include "chrome/browser/signin/about_signin_internals_factory.h" | 38 #include "chrome/browser/signin/about_signin_internals_factory.h" |
39 #include "chrome/browser/signin/signin_manager_factory.h" | 39 #include "chrome/browser/signin/signin_manager_factory.h" |
40 #include "chrome/browser/sync/profile_sync_service_factory.h" | 40 #include "chrome/browser/sync/profile_sync_service_factory.h" |
41 #include "chrome/browser/themes/theme_service_factory.h" | 41 #include "chrome/browser/themes/theme_service_factory.h" |
42 #include "chrome/browser/thumbnails/thumbnail_service_factory.h" | 42 #include "chrome/browser/thumbnails/thumbnail_service_factory.h" |
| 43 #include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h" |
43 #include "chrome/browser/ui/find_bar/find_bar_state_factory.h" | 44 #include "chrome/browser/ui/find_bar/find_bar_state_factory.h" |
44 #include "chrome/browser/ui/global_error/global_error_service_factory.h" | 45 #include "chrome/browser/ui/global_error/global_error_service_factory.h" |
45 #include "chrome/browser/ui/tabs/pinned_tab_service_factory.h" | 46 #include "chrome/browser/ui/tabs/pinned_tab_service_factory.h" |
46 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h" | 47 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h" |
47 #include "chrome/browser/undo/bookmark_undo_service_factory.h" | 48 #include "chrome/browser/undo/bookmark_undo_service_factory.h" |
48 #include "chrome/browser/webdata/web_data_service_factory.h" | 49 #include "chrome/browser/webdata/web_data_service_factory.h" |
49 | 50 |
50 #if defined(ENABLE_EXTENSIONS) | 51 #if defined(ENABLE_EXTENSIONS) |
51 #include "apps/browser_context_keyed_service_factories.h" | 52 #include "apps/browser_context_keyed_service_factories.h" |
52 #include "chrome/browser/apps/ephemeral_app_service_factory.h" | 53 #include "chrome/browser/apps/ephemeral_app_service_factory.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 // TODO(erg): This needs to be something else. I don't think putting every | 132 // TODO(erg): This needs to be something else. I don't think putting every |
132 // FooServiceFactory here will scale or is desirable long term. | 133 // FooServiceFactory here will scale or is desirable long term. |
133 // | 134 // |
134 // static | 135 // static |
135 void ChromeBrowserMainExtraPartsProfiles:: | 136 void ChromeBrowserMainExtraPartsProfiles:: |
136 EnsureBrowserContextKeyedServiceFactoriesBuilt() { | 137 EnsureBrowserContextKeyedServiceFactoriesBuilt() { |
137 #if defined(ENABLE_EXTENSIONS) | 138 #if defined(ENABLE_EXTENSIONS) |
138 apps::EnsureBrowserContextKeyedServiceFactoriesBuilt(); | 139 apps::EnsureBrowserContextKeyedServiceFactoriesBuilt(); |
139 extensions::EnsureBrowserContextKeyedServiceFactoriesBuilt(); | 140 extensions::EnsureBrowserContextKeyedServiceFactoriesBuilt(); |
140 chrome_extensions::EnsureBrowserContextKeyedServiceFactoriesBuilt(); | 141 chrome_extensions::EnsureBrowserContextKeyedServiceFactoriesBuilt(); |
141 | |
142 AppShortcutManagerFactory::GetInstance(); | 142 AppShortcutManagerFactory::GetInstance(); |
143 EphemeralAppServiceFactory::GetInstance(); | 143 EphemeralAppServiceFactory::GetInstance(); |
144 #endif | 144 #endif |
145 | 145 |
| 146 #if defined(ENABLE_APP_LIST) |
| 147 app_list::AppListSyncableServiceFactory::GetInstance(); |
| 148 #endif |
| 149 |
146 AboutSigninInternalsFactory::GetInstance(); | 150 AboutSigninInternalsFactory::GetInstance(); |
147 autofill::PersonalDataManagerFactory::GetInstance(); | 151 autofill::PersonalDataManagerFactory::GetInstance(); |
148 #if !defined(OS_ANDROID) | 152 #if !defined(OS_ANDROID) |
149 AutomaticProfileResetterFactory::GetInstance(); | 153 AutomaticProfileResetterFactory::GetInstance(); |
150 #endif | 154 #endif |
151 #if defined(ENABLE_BACKGROUND) | 155 #if defined(ENABLE_BACKGROUND) |
152 BackgroundContentsServiceFactory::GetInstance(); | 156 BackgroundContentsServiceFactory::GetInstance(); |
153 #endif | 157 #endif |
154 BookmarkModelFactory::GetInstance(); | 158 BookmarkModelFactory::GetInstance(); |
155 #if !defined(OS_ANDROID) | 159 #if !defined(OS_ANDROID) |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 TemplateURLServiceFactory::GetInstance(); | 249 TemplateURLServiceFactory::GetInstance(); |
246 #if defined(ENABLE_THEMES) | 250 #if defined(ENABLE_THEMES) |
247 ThemeServiceFactory::GetInstance(); | 251 ThemeServiceFactory::GetInstance(); |
248 #endif | 252 #endif |
249 WebDataServiceFactory::GetInstance(); | 253 WebDataServiceFactory::GetInstance(); |
250 } | 254 } |
251 | 255 |
252 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { | 256 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { |
253 EnsureBrowserContextKeyedServiceFactoriesBuilt(); | 257 EnsureBrowserContextKeyedServiceFactoriesBuilt(); |
254 } | 258 } |
OLD | NEW |