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 |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h" | 32 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h" |
33 #include "chrome/browser/prerender/prerender_link_manager_factory.h" | 33 #include "chrome/browser/prerender/prerender_link_manager_factory.h" |
34 #include "chrome/browser/prerender/prerender_manager_factory.h" | 34 #include "chrome/browser/prerender/prerender_manager_factory.h" |
35 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory.
h" | 35 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory.
h" |
36 #include "chrome/browser/profiles/profile.h" | 36 #include "chrome/browser/profiles/profile.h" |
37 #include "chrome/browser/profiles/profile_keyed_service.h" | 37 #include "chrome/browser/profiles/profile_keyed_service.h" |
38 #include "chrome/browser/profiles/profile_keyed_service_factory.h" | 38 #include "chrome/browser/profiles/profile_keyed_service_factory.h" |
39 #include "chrome/browser/protector/protector_service_factory.h" | 39 #include "chrome/browser/protector/protector_service_factory.h" |
40 #include "chrome/browser/search_engines/template_url_fetcher_factory.h" | 40 #include "chrome/browser/search_engines/template_url_fetcher_factory.h" |
41 #include "chrome/browser/search_engines/template_url_service_factory.h" | 41 #include "chrome/browser/search_engines/template_url_service_factory.h" |
| 42 #include "chrome/browser/sessions/app_restore_service_factory.h" |
42 #include "chrome/browser/sessions/session_service_factory.h" | 43 #include "chrome/browser/sessions/session_service_factory.h" |
43 #include "chrome/browser/sessions/tab_restore_service_factory.h" | 44 #include "chrome/browser/sessions/tab_restore_service_factory.h" |
44 #include "chrome/browser/signin/signin_manager_factory.h" | 45 #include "chrome/browser/signin/signin_manager_factory.h" |
45 #include "chrome/browser/signin/token_service_factory.h" | 46 #include "chrome/browser/signin/token_service_factory.h" |
46 #include "chrome/browser/speech/chrome_speech_recognition_preferences.h" | 47 #include "chrome/browser/speech/chrome_speech_recognition_preferences.h" |
47 #include "chrome/browser/speech/speech_input_extension_manager.h" | 48 #include "chrome/browser/speech/speech_input_extension_manager.h" |
48 #include "chrome/browser/spellchecker/spellcheck_factory.h" | 49 #include "chrome/browser/spellchecker/spellcheck_factory.h" |
49 #if defined(OS_WIN) | 50 #if defined(OS_WIN) |
50 #include "chrome/browser/sync/credential_cache_service_factory_win.h" | 51 #include "chrome/browser/sync/credential_cache_service_factory_win.h" |
51 #endif // OS_WIN | 52 #endif // OS_WIN |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 // dependency graph when we create a profile so we can dispatch the profile | 190 // dependency graph when we create a profile so we can dispatch the profile |
190 // creation message to the services that want to create their services at | 191 // creation message to the services that want to create their services at |
191 // profile creation time. | 192 // profile creation time. |
192 // | 193 // |
193 // TODO(erg): This needs to be something else. I don't think putting every | 194 // TODO(erg): This needs to be something else. I don't think putting every |
194 // FooServiceFactory here will scale or is desireable long term. | 195 // FooServiceFactory here will scale or is desireable long term. |
195 void ProfileDependencyManager::AssertFactoriesBuilt() { | 196 void ProfileDependencyManager::AssertFactoriesBuilt() { |
196 if (built_factories_) | 197 if (built_factories_) |
197 return; | 198 return; |
198 | 199 |
| 200 AppRestoreServiceFactory::GetInstance(); |
199 #if defined(ENABLE_BACKGROUND) | 201 #if defined(ENABLE_BACKGROUND) |
200 BackgroundContentsServiceFactory::GetInstance(); | 202 BackgroundContentsServiceFactory::GetInstance(); |
201 #endif | 203 #endif |
202 BookmarkModelFactory::GetInstance(); | 204 BookmarkModelFactory::GetInstance(); |
203 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) | 205 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
204 captive_portal::CaptivePortalServiceFactory::GetInstance(); | 206 captive_portal::CaptivePortalServiceFactory::GetInstance(); |
205 #endif | 207 #endif |
206 ChromeURLDataManagerFactory::GetInstance(); | 208 ChromeURLDataManagerFactory::GetInstance(); |
207 #if defined(ENABLE_PRINTING) | 209 #if defined(ENABLE_PRINTING) |
208 CloudPrintProxyServiceFactory::GetInstance(); | 210 CloudPrintProxyServiceFactory::GetInstance(); |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 } | 382 } |
381 | 383 |
382 result.append("\n /* Toplevel profile */\n"); | 384 result.append("\n /* Toplevel profile */\n"); |
383 result.append(" Profile [shape=box];\n"); | 385 result.append(" Profile [shape=box];\n"); |
384 | 386 |
385 result.append("}\n"); | 387 result.append("}\n"); |
386 return result; | 388 return result; |
387 } | 389 } |
388 | 390 |
389 #endif | 391 #endif |
OLD | NEW |