| 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 18 matching lines...) Expand all Loading... |
| 29 #include "chrome/browser/sessions/tab_restore_service_factory.h" | 29 #include "chrome/browser/sessions/tab_restore_service_factory.h" |
| 30 #include "chrome/browser/signin/signin_manager_factory.h" | 30 #include "chrome/browser/signin/signin_manager_factory.h" |
| 31 #include "chrome/browser/signin/token_service_factory.h" | 31 #include "chrome/browser/signin/token_service_factory.h" |
| 32 #include "chrome/browser/speech/speech_input_extension_manager.h" | 32 #include "chrome/browser/speech/speech_input_extension_manager.h" |
| 33 #include "chrome/browser/spellchecker/spellcheck_factory.h" | 33 #include "chrome/browser/spellchecker/spellcheck_factory.h" |
| 34 #include "chrome/browser/sync/profile_sync_service_factory.h" | 34 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 35 #include "chrome/browser/tabs/pinned_tab_service_factory.h" | 35 #include "chrome/browser/tabs/pinned_tab_service_factory.h" |
| 36 #include "chrome/browser/themes/theme_service_factory.h" | 36 #include "chrome/browser/themes/theme_service_factory.h" |
| 37 #include "chrome/browser/ui/find_bar/find_bar_state_factory.h" | 37 #include "chrome/browser/ui/find_bar/find_bar_state_factory.h" |
| 38 #include "chrome/browser/ui/global_error_service_factory.h" | 38 #include "chrome/browser/ui/global_error_service_factory.h" |
| 39 #include "chrome/browser/ui/webui/chrome_url_data_manager_factory.h" |
| 39 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h" | 40 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h" |
| 40 #include "chrome/browser/user_style_sheet_watcher_factory.h" | 41 #include "chrome/browser/user_style_sheet_watcher_factory.h" |
| 41 | 42 |
| 42 #if defined(USE_AURA) | 43 #if defined(USE_AURA) |
| 43 #include "chrome/browser/ui/gesture_prefs_observer_factory_aura.h" | 44 #include "chrome/browser/ui/gesture_prefs_observer_factory_aura.h" |
| 44 #endif | 45 #endif |
| 45 | 46 |
| 46 #ifndef NDEBUG | 47 #ifndef NDEBUG |
| 47 #include "base/command_line.h" | 48 #include "base/command_line.h" |
| 48 #include "base/file_util.h" | 49 #include "base/file_util.h" |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 // dependency graph when we create a profile so we can dispatch the profile | 165 // dependency graph when we create a profile so we can dispatch the profile |
| 165 // creation message to the services that want to create their services at | 166 // creation message to the services that want to create their services at |
| 166 // profile creation time. | 167 // profile creation time. |
| 167 // | 168 // |
| 168 // TODO(erg): This needs to be something else. I don't think putting every | 169 // TODO(erg): This needs to be something else. I don't think putting every |
| 169 // FooServiceFactory here will scale or is desireable long term. | 170 // FooServiceFactory here will scale or is desireable long term. |
| 170 void ProfileDependencyManager::AssertFactoriesBuilt() { | 171 void ProfileDependencyManager::AssertFactoriesBuilt() { |
| 171 if (built_factories_) | 172 if (built_factories_) |
| 172 return; | 173 return; |
| 173 | 174 |
| 175 ChromeURLDataManagerFactory::GetInstance(); |
| 174 CookieSettings::Factory::GetInstance(); | 176 CookieSettings::Factory::GetInstance(); |
| 175 DownloadServiceFactory::GetInstance(); | 177 DownloadServiceFactory::GetInstance(); |
| 176 FindBarStateFactory::GetInstance(); | 178 FindBarStateFactory::GetInstance(); |
| 177 #if defined(USE_AURA) | 179 #if defined(USE_AURA) |
| 178 GesturePrefsObserverFactoryAura::GetInstance(); | 180 GesturePrefsObserverFactoryAura::GetInstance(); |
| 179 #endif | 181 #endif |
| 180 GlobalErrorServiceFactory::GetInstance(); | 182 GlobalErrorServiceFactory::GetInstance(); |
| 181 NetworkActionPredictorFactory::GetInstance(); | 183 NetworkActionPredictorFactory::GetInstance(); |
| 182 NTPResourceCacheFactory::GetInstance(); | 184 NTPResourceCacheFactory::GetInstance(); |
| 183 PasswordStoreFactory::GetInstance(); | 185 PasswordStoreFactory::GetInstance(); |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 } | 326 } |
| 325 | 327 |
| 326 result.append("\n /* Toplevel profile */\n"); | 328 result.append("\n /* Toplevel profile */\n"); |
| 327 result.append(" Profile [shape=box];\n"); | 329 result.append(" Profile [shape=box];\n"); |
| 328 | 330 |
| 329 result.append("}\n"); | 331 result.append("}\n"); |
| 330 return result; | 332 return result; |
| 331 } | 333 } |
| 332 | 334 |
| 333 #endif | 335 #endif |
| OLD | NEW |