| 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 26 matching lines...) Expand all Loading... |
| 37 #include "chrome/browser/speech/speech_input_extension_manager.h" | 37 #include "chrome/browser/speech/speech_input_extension_manager.h" |
| 38 #include "chrome/browser/spellchecker/spellcheck_factory.h" | 38 #include "chrome/browser/spellchecker/spellcheck_factory.h" |
| 39 #include "chrome/browser/sync/profile_sync_service_factory.h" | 39 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 40 #include "chrome/browser/themes/theme_service_factory.h" | 40 #include "chrome/browser/themes/theme_service_factory.h" |
| 41 #include "chrome/browser/ui/find_bar/find_bar_state_factory.h" | 41 #include "chrome/browser/ui/find_bar/find_bar_state_factory.h" |
| 42 #include "chrome/browser/ui/global_error_service_factory.h" | 42 #include "chrome/browser/ui/global_error_service_factory.h" |
| 43 #include "chrome/browser/ui/tabs/pinned_tab_service_factory.h" | 43 #include "chrome/browser/ui/tabs/pinned_tab_service_factory.h" |
| 44 #include "chrome/browser/ui/webui/chrome_url_data_manager_factory.h" | 44 #include "chrome/browser/ui/webui/chrome_url_data_manager_factory.h" |
| 45 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h" | 45 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h" |
| 46 #include "chrome/browser/user_style_sheet_watcher_factory.h" | 46 #include "chrome/browser/user_style_sheet_watcher_factory.h" |
| 47 | |
| 48 #if defined(USE_AURA) | 47 #if defined(USE_AURA) |
| 49 #include "chrome/browser/ui/gesture_prefs_observer_factory_aura.h" | 48 #include "chrome/browser/ui/gesture_prefs_observer_factory_aura.h" |
| 50 #endif | 49 #endif |
| 51 | 50 #include "chrome/browser/webdata/web_data_service_factory.h" |
| 52 #ifndef NDEBUG | 51 #ifndef NDEBUG |
| 53 #include "base/command_line.h" | 52 #include "base/command_line.h" |
| 54 #include "base/file_util.h" | 53 #include "base/file_util.h" |
| 55 #include "chrome/common/chrome_switches.h" | 54 #include "chrome/common/chrome_switches.h" |
| 56 #endif | 55 #endif |
| 57 | 56 |
| 58 class Profile; | 57 class Profile; |
| 59 | 58 |
| 60 void ProfileDependencyManager::AddComponent( | 59 void ProfileDependencyManager::AddComponent( |
| 61 ProfileKeyedBaseFactory* component) { | 60 ProfileKeyedBaseFactory* component) { |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 TemplateURLFetcherFactory::GetInstance(); | 225 TemplateURLFetcherFactory::GetInstance(); |
| 227 TemplateURLServiceFactory::GetInstance(); | 226 TemplateURLServiceFactory::GetInstance(); |
| 228 #if defined(ENABLE_THEMES) | 227 #if defined(ENABLE_THEMES) |
| 229 ThemeServiceFactory::GetInstance(); | 228 ThemeServiceFactory::GetInstance(); |
| 230 #endif | 229 #endif |
| 231 TokenServiceFactory::GetInstance(); | 230 TokenServiceFactory::GetInstance(); |
| 232 UserStyleSheetWatcherFactory::GetInstance(); | 231 UserStyleSheetWatcherFactory::GetInstance(); |
| 233 #if defined(ENABLE_WEB_INTENTS) | 232 #if defined(ENABLE_WEB_INTENTS) |
| 234 WebIntentsRegistryFactory::GetInstance(); | 233 WebIntentsRegistryFactory::GetInstance(); |
| 235 #endif | 234 #endif |
| 235 WebDataServiceFactory::GetInstance(); |
| 236 | 236 |
| 237 built_factories_ = true; | 237 built_factories_ = true; |
| 238 } | 238 } |
| 239 | 239 |
| 240 void ProfileDependencyManager::BuildDestructionOrder(Profile* profile) { | 240 void ProfileDependencyManager::BuildDestructionOrder(Profile* profile) { |
| 241 #if !defined(NDEBUG) | 241 #if !defined(NDEBUG) |
| 242 // Whenever we try to build a destruction ordering, we should also dump a | 242 // Whenever we try to build a destruction ordering, we should also dump a |
| 243 // dependency graph to "/path/to/profile/profile-dependencies.dot". | 243 // dependency graph to "/path/to/profile/profile-dependencies.dot". |
| 244 if (CommandLine::ForCurrentProcess()->HasSwitch( | 244 if (CommandLine::ForCurrentProcess()->HasSwitch( |
| 245 switches::kDumpProfileDependencyGraph)) { | 245 switches::kDumpProfileDependencyGraph)) { |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 } | 340 } |
| 341 | 341 |
| 342 result.append("\n /* Toplevel profile */\n"); | 342 result.append("\n /* Toplevel profile */\n"); |
| 343 result.append(" Profile [shape=box];\n"); | 343 result.append(" Profile [shape=box];\n"); |
| 344 | 344 |
| 345 result.append("}\n"); | 345 result.append("}\n"); |
| 346 return result; | 346 return result; |
| 347 } | 347 } |
| 348 | 348 |
| 349 #endif | 349 #endif |
| OLD | NEW |