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/autofill/personal_data_manager_factory.h" | 11 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
12 #include "chrome/browser/background/background_contents_service_factory.h" | 12 #include "chrome/browser/background/background_contents_service_factory.h" |
| 13 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
13 #include "chrome/browser/captive_portal/captive_portal_service_factory.h" | 14 #include "chrome/browser/captive_portal/captive_portal_service_factory.h" |
14 #include "chrome/browser/content_settings/cookie_settings.h" | 15 #include "chrome/browser/content_settings/cookie_settings.h" |
15 #include "chrome/browser/download/download_service_factory.h" | 16 #include "chrome/browser/download/download_service_factory.h" |
16 #include "chrome/browser/extensions/api/commands/extension_command_service_facto
ry.h" | 17 #include "chrome/browser/extensions/api/commands/extension_command_service_facto
ry.h" |
17 #include "chrome/browser/extensions/extension_system_factory.h" | 18 #include "chrome/browser/extensions/extension_system_factory.h" |
18 #include "chrome/browser/google/google_url_tracker_factory.h" | 19 #include "chrome/browser/google/google_url_tracker_factory.h" |
| 20 #include "chrome/browser/history/history_service_factory.h" |
19 #include "chrome/browser/intents/web_intents_registry_factory.h" | 21 #include "chrome/browser/intents/web_intents_registry_factory.h" |
20 #include "chrome/browser/notifications/desktop_notification_service_factory.h" | 22 #include "chrome/browser/notifications/desktop_notification_service_factory.h" |
21 #include "chrome/browser/password_manager/password_store_factory.h" | 23 #include "chrome/browser/password_manager/password_store_factory.h" |
22 #include "chrome/browser/plugin_prefs_factory.h" | 24 #include "chrome/browser/plugin_prefs_factory.h" |
23 #include "chrome/browser/predictors/autocomplete_action_predictor_factory.h" | 25 #include "chrome/browser/predictors/autocomplete_action_predictor_factory.h" |
24 #include "chrome/browser/predictors/predictor_database_factory.h" | 26 #include "chrome/browser/predictors/predictor_database_factory.h" |
25 #include "chrome/browser/prerender/prerender_manager_factory.h" | 27 #include "chrome/browser/prerender/prerender_manager_factory.h" |
26 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory.
h" | 28 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory.
h" |
27 #include "chrome/browser/profiles/profile.h" | 29 #include "chrome/browser/profiles/profile.h" |
28 #include "chrome/browser/profiles/profile_keyed_service.h" | 30 #include "chrome/browser/profiles/profile_keyed_service.h" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 // | 174 // |
173 // TODO(erg): This needs to be something else. I don't think putting every | 175 // TODO(erg): This needs to be something else. I don't think putting every |
174 // FooServiceFactory here will scale or is desireable long term. | 176 // FooServiceFactory here will scale or is desireable long term. |
175 void ProfileDependencyManager::AssertFactoriesBuilt() { | 177 void ProfileDependencyManager::AssertFactoriesBuilt() { |
176 if (built_factories_) | 178 if (built_factories_) |
177 return; | 179 return; |
178 | 180 |
179 #if defined(ENABLE_BACKGROUND) | 181 #if defined(ENABLE_BACKGROUND) |
180 BackgroundContentsServiceFactory::GetInstance(); | 182 BackgroundContentsServiceFactory::GetInstance(); |
181 #endif | 183 #endif |
| 184 BookmarkModelFactory::GetInstance(); |
182 #if !defined(OS_ANDROID) | 185 #if !defined(OS_ANDROID) |
183 captive_portal::CaptivePortalServiceFactory::GetInstance(); | 186 captive_portal::CaptivePortalServiceFactory::GetInstance(); |
184 #endif | 187 #endif |
185 ChromeURLDataManagerFactory::GetInstance(); | 188 ChromeURLDataManagerFactory::GetInstance(); |
186 #if !defined(OS_ANDROID) | 189 #if !defined(OS_ANDROID) |
187 CloudPrintProxyServiceFactory::GetInstance(); | 190 CloudPrintProxyServiceFactory::GetInstance(); |
188 #endif | 191 #endif |
189 CookieSettings::Factory::GetInstance(); | 192 CookieSettings::Factory::GetInstance(); |
190 #if defined(ENABLE_NOTIFICATIONS) | 193 #if defined(ENABLE_NOTIFICATIONS) |
191 DesktopNotificationServiceFactory::GetInstance(); | 194 DesktopNotificationServiceFactory::GetInstance(); |
192 #endif | 195 #endif |
193 DownloadServiceFactory::GetInstance(); | 196 DownloadServiceFactory::GetInstance(); |
194 ExtensionCommandServiceFactory::GetInstance(); | 197 ExtensionCommandServiceFactory::GetInstance(); |
195 ExtensionSystemFactory::GetInstance(); | 198 ExtensionSystemFactory::GetInstance(); |
196 FindBarStateFactory::GetInstance(); | 199 FindBarStateFactory::GetInstance(); |
197 #if defined(USE_AURA) | 200 #if defined(USE_AURA) |
198 GesturePrefsObserverFactoryAura::GetInstance(); | 201 GesturePrefsObserverFactoryAura::GetInstance(); |
199 #endif | 202 #endif |
200 GlobalErrorServiceFactory::GetInstance(); | 203 GlobalErrorServiceFactory::GetInstance(); |
201 GoogleURLTrackerFactory::GetInstance(); | 204 GoogleURLTrackerFactory::GetInstance(); |
| 205 HistoryServiceFactory::GetInstance(); |
202 NTPResourceCacheFactory::GetInstance(); | 206 NTPResourceCacheFactory::GetInstance(); |
203 PasswordStoreFactory::GetInstance(); | 207 PasswordStoreFactory::GetInstance(); |
204 PersonalDataManagerFactory::GetInstance(); | 208 PersonalDataManagerFactory::GetInstance(); |
205 #if !defined(OS_ANDROID) | 209 #if !defined(OS_ANDROID) |
206 PinnedTabServiceFactory::GetInstance(); | 210 PinnedTabServiceFactory::GetInstance(); |
207 #endif | 211 #endif |
208 PluginPrefsFactory::GetInstance(); | 212 PluginPrefsFactory::GetInstance(); |
209 predictors::AutocompleteActionPredictorFactory::GetInstance(); | 213 predictors::AutocompleteActionPredictorFactory::GetInstance(); |
210 predictors::PredictorDatabaseFactory::GetInstance(); | 214 predictors::PredictorDatabaseFactory::GetInstance(); |
211 prerender::PrerenderManagerFactory::GetInstance(); | 215 prerender::PrerenderManagerFactory::GetInstance(); |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 } | 342 } |
339 | 343 |
340 result.append("\n /* Toplevel profile */\n"); | 344 result.append("\n /* Toplevel profile */\n"); |
341 result.append(" Profile [shape=box];\n"); | 345 result.append(" Profile [shape=box];\n"); |
342 | 346 |
343 result.append("}\n"); | 347 result.append("}\n"); |
344 return result; | 348 return result; |
345 } | 349 } |
346 | 350 |
347 #endif | 351 #endif |
OLD | NEW |