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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 #endif | 222 #endif |
223 SpellCheckFactory::GetInstance(); | 223 SpellCheckFactory::GetInstance(); |
224 TabRestoreServiceFactory::GetInstance(); | 224 TabRestoreServiceFactory::GetInstance(); |
225 TemplateURLFetcherFactory::GetInstance(); | 225 TemplateURLFetcherFactory::GetInstance(); |
226 TemplateURLServiceFactory::GetInstance(); | 226 TemplateURLServiceFactory::GetInstance(); |
227 #if defined(ENABLE_THEMES) | 227 #if defined(ENABLE_THEMES) |
228 ThemeServiceFactory::GetInstance(); | 228 ThemeServiceFactory::GetInstance(); |
229 #endif | 229 #endif |
230 TokenServiceFactory::GetInstance(); | 230 TokenServiceFactory::GetInstance(); |
231 UserStyleSheetWatcherFactory::GetInstance(); | 231 UserStyleSheetWatcherFactory::GetInstance(); |
232 #if defined(ENABLE_WEB_INTENTS) | 232 WebDataServiceFactory::GetInstance(); |
233 WebIntentsRegistryFactory::GetInstance(); | 233 WebIntentsRegistryFactory::GetInstance(); |
234 #endif | |
235 WebDataServiceFactory::GetInstance(); | |
236 | 234 |
237 built_factories_ = true; | 235 built_factories_ = true; |
238 } | 236 } |
239 | 237 |
240 void ProfileDependencyManager::BuildDestructionOrder(Profile* profile) { | 238 void ProfileDependencyManager::BuildDestructionOrder(Profile* profile) { |
241 #if !defined(NDEBUG) | 239 #if !defined(NDEBUG) |
242 // Whenever we try to build a destruction ordering, we should also dump a | 240 // Whenever we try to build a destruction ordering, we should also dump a |
243 // dependency graph to "/path/to/profile/profile-dependencies.dot". | 241 // dependency graph to "/path/to/profile/profile-dependencies.dot". |
244 if (CommandLine::ForCurrentProcess()->HasSwitch( | 242 if (CommandLine::ForCurrentProcess()->HasSwitch( |
245 switches::kDumpProfileDependencyGraph)) { | 243 switches::kDumpProfileDependencyGraph)) { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 } | 338 } |
341 | 339 |
342 result.append("\n /* Toplevel profile */\n"); | 340 result.append("\n /* Toplevel profile */\n"); |
343 result.append(" Profile [shape=box];\n"); | 341 result.append(" Profile [shape=box];\n"); |
344 | 342 |
345 result.append("}\n"); | 343 result.append("}\n"); |
346 return result; | 344 return result; |
347 } | 345 } |
348 | 346 |
349 #endif | 347 #endif |
OLD | NEW |