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 | |
42 #if defined(USE_AURA) | 41 #if defined(USE_AURA) |
43 #include "chrome/browser/ui/gesture_prefs_observer_factory_aura.h" | 42 #include "chrome/browser/ui/gesture_prefs_observer_factory_aura.h" |
44 #endif | 43 #endif |
45 | 44 #include "chrome/browser/webdata/web_data_service_factory.h" |
46 #ifndef NDEBUG | 45 #ifndef NDEBUG |
47 #include "base/command_line.h" | 46 #include "base/command_line.h" |
48 #include "base/file_util.h" | 47 #include "base/file_util.h" |
49 #include "chrome/common/chrome_switches.h" | 48 #include "chrome/common/chrome_switches.h" |
50 #endif | 49 #endif |
51 | 50 |
52 class Profile; | 51 class Profile; |
53 | 52 |
54 void ProfileDependencyManager::AddComponent( | 53 void ProfileDependencyManager::AddComponent( |
55 ProfileKeyedBaseFactory* component) { | 54 ProfileKeyedBaseFactory* component) { |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 #if defined(ENABLE_THEMES) | 209 #if defined(ENABLE_THEMES) |
211 ThemeServiceFactory::GetInstance(); | 210 ThemeServiceFactory::GetInstance(); |
212 #endif | 211 #endif |
213 UserStyleSheetWatcherFactory::GetInstance(); | 212 UserStyleSheetWatcherFactory::GetInstance(); |
214 #if defined(ENABLE_WEB_INTENTS) | 213 #if defined(ENABLE_WEB_INTENTS) |
215 WebIntentsRegistryFactory::GetInstance(); | 214 WebIntentsRegistryFactory::GetInstance(); |
216 #endif | 215 #endif |
217 #if defined(ENABLE_BACKGROUND) | 216 #if defined(ENABLE_BACKGROUND) |
218 BackgroundContentsServiceFactory::GetInstance(); | 217 BackgroundContentsServiceFactory::GetInstance(); |
219 #endif // defined(ENABLE_BACKGROUND) | 218 #endif // defined(ENABLE_BACKGROUND) |
| 219 WebDataServiceFactory::GetInstance(); |
220 | 220 |
221 built_factories_ = true; | 221 built_factories_ = true; |
222 } | 222 } |
223 | 223 |
224 void ProfileDependencyManager::BuildDestructionOrder(Profile* profile) { | 224 void ProfileDependencyManager::BuildDestructionOrder(Profile* profile) { |
225 #if !defined(NDEBUG) | 225 #if !defined(NDEBUG) |
226 // Whenever we try to build a destruction ordering, we should also dump a | 226 // Whenever we try to build a destruction ordering, we should also dump a |
227 // dependency graph to "/path/to/profile/profile-dependencies.dot". | 227 // dependency graph to "/path/to/profile/profile-dependencies.dot". |
228 if (CommandLine::ForCurrentProcess()->HasSwitch( | 228 if (CommandLine::ForCurrentProcess()->HasSwitch( |
229 switches::kDumpProfileDependencyGraph)) { | 229 switches::kDumpProfileDependencyGraph)) { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 } | 324 } |
325 | 325 |
326 result.append("\n /* Toplevel profile */\n"); | 326 result.append("\n /* Toplevel profile */\n"); |
327 result.append(" Profile [shape=box];\n"); | 327 result.append(" Profile [shape=box];\n"); |
328 | 328 |
329 result.append("}\n"); | 329 result.append("}\n"); |
330 return result; | 330 return result; |
331 } | 331 } |
332 | 332 |
333 #endif | 333 #endif |
OLD | NEW |