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 20 matching lines...) Expand all Loading... |
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/ntp/ntp_resource_cache_factory.h" | 39 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h" |
40 #include "chrome/browser/user_style_sheet_watcher_factory.h" | 40 #include "chrome/browser/user_style_sheet_watcher_factory.h" |
41 | 41 #include "chrome/browser/webdata/web_data_service_factory.h" |
42 #ifndef NDEBUG | 42 #ifndef NDEBUG |
43 #include "base/command_line.h" | 43 #include "base/command_line.h" |
44 #include "base/file_util.h" | 44 #include "base/file_util.h" |
45 #include "chrome/common/chrome_switches.h" | 45 #include "chrome/common/chrome_switches.h" |
46 #endif | 46 #endif |
47 | 47 |
48 class Profile; | 48 class Profile; |
49 | 49 |
50 void ProfileDependencyManager::AddComponent( | 50 void ProfileDependencyManager::AddComponent( |
51 ProfileKeyedBaseFactory* component) { | 51 ProfileKeyedBaseFactory* component) { |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 #if defined(ENABLE_THEMES) | 203 #if defined(ENABLE_THEMES) |
204 ThemeServiceFactory::GetInstance(); | 204 ThemeServiceFactory::GetInstance(); |
205 #endif | 205 #endif |
206 UserStyleSheetWatcherFactory::GetInstance(); | 206 UserStyleSheetWatcherFactory::GetInstance(); |
207 #if defined(ENABLE_WEB_INTENTS) | 207 #if defined(ENABLE_WEB_INTENTS) |
208 WebIntentsRegistryFactory::GetInstance(); | 208 WebIntentsRegistryFactory::GetInstance(); |
209 #endif | 209 #endif |
210 #if defined(ENABLE_BACKGROUND) | 210 #if defined(ENABLE_BACKGROUND) |
211 BackgroundContentsServiceFactory::GetInstance(); | 211 BackgroundContentsServiceFactory::GetInstance(); |
212 #endif // defined(ENABLE_BACKGROUND) | 212 #endif // defined(ENABLE_BACKGROUND) |
| 213 WebDataServiceFactory::GetInstance(); |
213 | 214 |
214 built_factories_ = true; | 215 built_factories_ = true; |
215 } | 216 } |
216 | 217 |
217 void ProfileDependencyManager::BuildDestructionOrder(Profile* profile) { | 218 void ProfileDependencyManager::BuildDestructionOrder(Profile* profile) { |
218 #if !defined(NDEBUG) | 219 #if !defined(NDEBUG) |
219 // Whenever we try to build a destruction ordering, we should also dump a | 220 // Whenever we try to build a destruction ordering, we should also dump a |
220 // dependency graph to "/path/to/profile/profile-dependencies.dot". | 221 // dependency graph to "/path/to/profile/profile-dependencies.dot". |
221 if (CommandLine::ForCurrentProcess()->HasSwitch( | 222 if (CommandLine::ForCurrentProcess()->HasSwitch( |
222 switches::kDumpProfileDependencyGraph)) { | 223 switches::kDumpProfileDependencyGraph)) { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 } | 318 } |
318 | 319 |
319 result.append("\n /* Toplevel profile */\n"); | 320 result.append("\n /* Toplevel profile */\n"); |
320 result.append(" Profile [shape=box];\n"); | 321 result.append(" Profile [shape=box];\n"); |
321 | 322 |
322 result.append("}\n"); | 323 result.append("}\n"); |
323 return result; | 324 return result; |
324 } | 325 } |
325 | 326 |
326 #endif | 327 #endif |
OLD | NEW |