OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/profile_dependency_manager.h" | 5 #include "chrome/browser/profiles/profile_dependency_manager.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <deque> | 8 #include <deque> |
9 #include <iterator> | 9 #include <iterator> |
10 | 10 |
11 #include "chrome/browser/autocomplete/network_action_predictor_factory.h" | |
12 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 11 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
13 #include "chrome/browser/background/background_contents_service_factory.h" | 12 #include "chrome/browser/background/background_contents_service_factory.h" |
14 #include "chrome/browser/content_settings/cookie_settings.h" | 13 #include "chrome/browser/content_settings/cookie_settings.h" |
15 #include "chrome/browser/download/download_service_factory.h" | 14 #include "chrome/browser/download/download_service_factory.h" |
16 #include "chrome/browser/intents/web_intents_registry_factory.h" | 15 #include "chrome/browser/intents/web_intents_registry_factory.h" |
17 #include "chrome/browser/notifications/desktop_notification_service_factory.h" | 16 #include "chrome/browser/notifications/desktop_notification_service_factory.h" |
18 #include "chrome/browser/password_manager/password_store_factory.h" | 17 #include "chrome/browser/password_manager/password_store_factory.h" |
19 #include "chrome/browser/plugin_prefs_factory.h" | 18 #include "chrome/browser/plugin_prefs_factory.h" |
| 19 #include "chrome/browser/predictors/autocomplete_action_predictor_factory.h" |
20 #include "chrome/browser/prerender/prerender_manager_factory.h" | 20 #include "chrome/browser/prerender/prerender_manager_factory.h" |
21 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory.
h" | 21 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory.
h" |
22 #include "chrome/browser/profiles/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
23 #include "chrome/browser/profiles/profile_keyed_service.h" | 23 #include "chrome/browser/profiles/profile_keyed_service.h" |
24 #include "chrome/browser/profiles/profile_keyed_service_factory.h" | 24 #include "chrome/browser/profiles/profile_keyed_service_factory.h" |
25 #include "chrome/browser/protector/protector_service_factory.h" | 25 #include "chrome/browser/protector/protector_service_factory.h" |
26 #include "chrome/browser/search_engines/template_url_service_factory.h" | 26 #include "chrome/browser/search_engines/template_url_service_factory.h" |
27 #include "chrome/browser/sessions/session_service_factory.h" | 27 #include "chrome/browser/sessions/session_service_factory.h" |
28 #include "chrome/browser/sessions/tab_restore_service_factory.h" | 28 #include "chrome/browser/sessions/tab_restore_service_factory.h" |
29 #include "chrome/browser/signin/signin_manager_factory.h" | 29 #include "chrome/browser/signin/signin_manager_factory.h" |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 // dependency graph when we create a profile so we can dispatch the profile | 158 // dependency graph when we create a profile so we can dispatch the profile |
159 // creation message to the services that want to create their services at | 159 // creation message to the services that want to create their services at |
160 // profile creation time. | 160 // profile creation time. |
161 // | 161 // |
162 // TODO(erg): This needs to be something else. I don't think putting every | 162 // TODO(erg): This needs to be something else. I don't think putting every |
163 // FooServiceFactory here will scale or is desireable long term. | 163 // FooServiceFactory here will scale or is desireable long term. |
164 void ProfileDependencyManager::AssertFactoriesBuilt() { | 164 void ProfileDependencyManager::AssertFactoriesBuilt() { |
165 if (built_factories_) | 165 if (built_factories_) |
166 return; | 166 return; |
167 | 167 |
| 168 AutocompleteActionPredictorFactory::GetInstance(); |
168 BackgroundContentsServiceFactory::GetInstance(); | 169 BackgroundContentsServiceFactory::GetInstance(); |
169 #if !defined(OS_ANDROID) | 170 #if !defined(OS_ANDROID) |
170 CloudPrintProxyServiceFactory::GetInstance(); | 171 CloudPrintProxyServiceFactory::GetInstance(); |
171 #endif | 172 #endif |
172 CookieSettings::Factory::GetInstance(); | 173 CookieSettings::Factory::GetInstance(); |
173 #if defined(ENABLE_NOTIFICATIONS) | 174 #if defined(ENABLE_NOTIFICATIONS) |
174 DesktopNotificationServiceFactory::GetInstance(); | 175 DesktopNotificationServiceFactory::GetInstance(); |
175 #endif | 176 #endif |
176 DownloadServiceFactory::GetInstance(); | 177 DownloadServiceFactory::GetInstance(); |
177 FindBarStateFactory::GetInstance(); | 178 FindBarStateFactory::GetInstance(); |
178 GlobalErrorServiceFactory::GetInstance(); | 179 GlobalErrorServiceFactory::GetInstance(); |
179 NetworkActionPredictorFactory::GetInstance(); | |
180 NTPResourceCacheFactory::GetInstance(); | 180 NTPResourceCacheFactory::GetInstance(); |
181 PasswordStoreFactory::GetInstance(); | 181 PasswordStoreFactory::GetInstance(); |
182 PersonalDataManagerFactory::GetInstance(); | 182 PersonalDataManagerFactory::GetInstance(); |
183 PinnedTabServiceFactory::GetInstance(); | 183 PinnedTabServiceFactory::GetInstance(); |
184 PluginPrefsFactory::GetInstance(); | 184 PluginPrefsFactory::GetInstance(); |
185 protector::ProtectorServiceFactory::GetInstance(); | 185 protector::ProtectorServiceFactory::GetInstance(); |
186 prerender::PrerenderManagerFactory::GetInstance(); | 186 prerender::PrerenderManagerFactory::GetInstance(); |
187 ProfileSyncServiceFactory::GetInstance(); | 187 ProfileSyncServiceFactory::GetInstance(); |
188 SessionServiceFactory::GetInstance(); | 188 SessionServiceFactory::GetInstance(); |
189 SigninManagerFactory::GetInstance(); | 189 SigninManagerFactory::GetInstance(); |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 } | 307 } |
308 | 308 |
309 result.append("\n /* Toplevel profile */\n"); | 309 result.append("\n /* Toplevel profile */\n"); |
310 result.append(" Profile [shape=box];\n"); | 310 result.append(" Profile [shape=box];\n"); |
311 | 311 |
312 result.append("}\n"); | 312 result.append("}\n"); |
313 return result; | 313 return result; |
314 } | 314 } |
315 | 315 |
316 #endif | 316 #endif |
OLD | NEW |