| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 #include "chrome/browser/signin/about_signin_internals_factory.h" | 75 #include "chrome/browser/signin/about_signin_internals_factory.h" |
| 76 #include "chrome/browser/signin/signin_manager_factory.h" | 76 #include "chrome/browser/signin/signin_manager_factory.h" |
| 77 #include "chrome/browser/signin/token_service_factory.h" | 77 #include "chrome/browser/signin/token_service_factory.h" |
| 78 #include "chrome/browser/speech/chrome_speech_recognition_preferences.h" | 78 #include "chrome/browser/speech/chrome_speech_recognition_preferences.h" |
| 79 #include "chrome/browser/speech/extension_api/tts_extension_api.h" | 79 #include "chrome/browser/speech/extension_api/tts_extension_api.h" |
| 80 #include "chrome/browser/speech/speech_input_extension_manager.h" | 80 #include "chrome/browser/speech/speech_input_extension_manager.h" |
| 81 #include "chrome/browser/spellchecker/spellcheck_factory.h" | 81 #include "chrome/browser/spellchecker/spellcheck_factory.h" |
| 82 #include "chrome/browser/sync/profile_sync_service_factory.h" | 82 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 83 #include "chrome/browser/themes/theme_service_factory.h" | 83 #include "chrome/browser/themes/theme_service_factory.h" |
| 84 #include "chrome/browser/thumbnails/thumbnail_service_factory.h" | 84 #include "chrome/browser/thumbnails/thumbnail_service_factory.h" |
| 85 #include "chrome/browser/token_cache/token_cache_factory.h" |
| 85 #include "chrome/browser/ui/find_bar/find_bar_state_factory.h" | 86 #include "chrome/browser/ui/find_bar/find_bar_state_factory.h" |
| 86 #include "chrome/browser/ui/global_error/global_error_service_factory.h" | 87 #include "chrome/browser/ui/global_error/global_error_service_factory.h" |
| 87 #include "chrome/browser/ui/tabs/pinned_tab_service_factory.h" | 88 #include "chrome/browser/ui/tabs/pinned_tab_service_factory.h" |
| 88 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h" | 89 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h" |
| 89 #include "chrome/browser/user_style_sheet_watcher_factory.h" | 90 #include "chrome/browser/user_style_sheet_watcher_factory.h" |
| 90 #include "chrome/browser/webdata/web_data_service_factory.h" | 91 #include "chrome/browser/webdata/web_data_service_factory.h" |
| 91 | 92 |
| 92 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) | 93 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
| 93 #include "chrome/browser/captive_portal/captive_portal_service_factory.h" | 94 #include "chrome/browser/captive_portal/captive_portal_service_factory.h" |
| 94 #endif | 95 #endif |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 #if defined(ENABLE_INPUT_SPEECH) | 353 #if defined(ENABLE_INPUT_SPEECH) |
| 353 ChromeSpeechRecognitionPreferences::InitializeFactory(); | 354 ChromeSpeechRecognitionPreferences::InitializeFactory(); |
| 354 #endif | 355 #endif |
| 355 SpellcheckServiceFactory::GetInstance(); | 356 SpellcheckServiceFactory::GetInstance(); |
| 356 TabRestoreServiceFactory::GetInstance(); | 357 TabRestoreServiceFactory::GetInstance(); |
| 357 TemplateURLFetcherFactory::GetInstance(); | 358 TemplateURLFetcherFactory::GetInstance(); |
| 358 TemplateURLServiceFactory::GetInstance(); | 359 TemplateURLServiceFactory::GetInstance(); |
| 359 #if defined(ENABLE_THEMES) | 360 #if defined(ENABLE_THEMES) |
| 360 ThemeServiceFactory::GetInstance(); | 361 ThemeServiceFactory::GetInstance(); |
| 361 #endif | 362 #endif |
| 363 TokenCacheServiceFactory::GetInstance(); |
| 362 TokenServiceFactory::GetInstance(); | 364 TokenServiceFactory::GetInstance(); |
| 363 UserStyleSheetWatcherFactory::GetInstance(); | 365 UserStyleSheetWatcherFactory::GetInstance(); |
| 364 WebDataServiceFactory::GetInstance(); | 366 WebDataServiceFactory::GetInstance(); |
| 365 | 367 |
| 366 built_factories_ = true; | 368 built_factories_ = true; |
| 367 } | 369 } |
| 368 | 370 |
| 369 void ProfileDependencyManager::BuildDestructionOrder(Profile* profile) { | 371 void ProfileDependencyManager::BuildDestructionOrder(Profile* profile) { |
| 370 #if !defined(NDEBUG) | 372 #if !defined(NDEBUG) |
| 371 // Whenever we try to build a destruction ordering, we should also dump a | 373 // Whenever we try to build a destruction ordering, we should also dump a |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 } | 471 } |
| 470 | 472 |
| 471 result.append("\n /* Toplevel profile */\n"); | 473 result.append("\n /* Toplevel profile */\n"); |
| 472 result.append(" Profile [shape=box];\n"); | 474 result.append(" Profile [shape=box];\n"); |
| 473 | 475 |
| 474 result.append("}\n"); | 476 result.append("}\n"); |
| 475 return result; | 477 return result; |
| 476 } | 478 } |
| 477 | 479 |
| 478 #endif | 480 #endif |
| OLD | NEW |