| 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 27 matching lines...) Expand all Loading... |
| 38 #include "chrome/browser/extensions/api/preference/preference_api.h" | 38 #include "chrome/browser/extensions/api/preference/preference_api.h" |
| 39 #include "chrome/browser/extensions/api/processes/processes_api.h" | 39 #include "chrome/browser/extensions/api/processes/processes_api.h" |
| 40 #include "chrome/browser/extensions/api/push_messaging/push_messaging_api.h" | 40 #include "chrome/browser/extensions/api/push_messaging/push_messaging_api.h" |
| 41 #include "chrome/browser/extensions/api/session_restore/session_restore_api.h" | 41 #include "chrome/browser/extensions/api/session_restore/session_restore_api.h" |
| 42 #include "chrome/browser/extensions/api/tab_capture/tab_capture_registry_factory
.h" | 42 #include "chrome/browser/extensions/api/tab_capture/tab_capture_registry_factory
.h" |
| 43 #include "chrome/browser/extensions/api/tabs/tabs_windows_api.h" | 43 #include "chrome/browser/extensions/api/tabs/tabs_windows_api.h" |
| 44 #include "chrome/browser/extensions/api/web_navigation/web_navigation_api.h" | 44 #include "chrome/browser/extensions/api/web_navigation/web_navigation_api.h" |
| 45 #include "chrome/browser/extensions/csp_parser.h" | 45 #include "chrome/browser/extensions/csp_parser.h" |
| 46 #include "chrome/browser/extensions/extension_system_factory.h" | 46 #include "chrome/browser/extensions/extension_system_factory.h" |
| 47 #include "chrome/browser/extensions/manifest_url_parser.h" | 47 #include "chrome/browser/extensions/manifest_url_parser.h" |
| 48 #include "chrome/browser/extensions/token_cache/token_cache_service_factory.h" |
| 48 #include "chrome/browser/extensions/web_accessible_resources_parser.h" | 49 #include "chrome/browser/extensions/web_accessible_resources_parser.h" |
| 49 #include "chrome/browser/favicon/favicon_service_factory.h" | 50 #include "chrome/browser/favicon/favicon_service_factory.h" |
| 50 #include "chrome/browser/geolocation/chrome_geolocation_permission_context_facto
ry.h" | 51 #include "chrome/browser/geolocation/chrome_geolocation_permission_context_facto
ry.h" |
| 51 #include "chrome/browser/google/google_url_tracker_factory.h" | 52 #include "chrome/browser/google/google_url_tracker_factory.h" |
| 52 #include "chrome/browser/history/history_service_factory.h" | 53 #include "chrome/browser/history/history_service_factory.h" |
| 53 #include "chrome/browser/history/shortcuts_backend_factory.h" | 54 #include "chrome/browser/history/shortcuts_backend_factory.h" |
| 54 #include "chrome/browser/media_gallery/media_galleries_preferences_factory.h" | 55 #include "chrome/browser/media_gallery/media_galleries_preferences_factory.h" |
| 55 #include "chrome/browser/notifications/desktop_notification_service_factory.h" | 56 #include "chrome/browser/notifications/desktop_notification_service_factory.h" |
| 56 #if !defined(OS_ANDROID) | 57 #if !defined(OS_ANDROID) |
| 57 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service_fac
tory.h" | 58 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service_fac
tory.h" |
| (...skipping 294 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 |