1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/extensions/browser_context_keyed_service_factories.h"
7 #include "chrome/browser/extensions/activity_log/activity_log.h"
8 #include "chrome/browser/extensions/api/activity_log_private/activity_log_private_api.h"
9 #include "chrome/browser/extensions/api/autofill_private/autofill_private_event_router_factory.h"
10 #include "chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.h"
11 #include "chrome/browser/extensions/api/bookmarks/bookmarks_api.h"
12 #include "chrome/browser/extensions/api/braille_display_private/braille_display_private_api.h"
13 #include "chrome/browser/extensions/api/commands/command_service.h"
14 #include "chrome/browser/extensions/api/content_settings/content_settings_service.h"
15 #include "chrome/browser/extensions/api/cookies/cookies_api.h"
16 #include "chrome/browser/extensions/api/developer_private/developer_private_api.h"
17 #include "chrome/browser/extensions/api/dial/dial_api_factory.h"
18 #include "chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.h"
19 #include "chrome/browser/extensions/api/extension_action/extension_action_api.h"
20 #include "chrome/browser/extensions/api/feedback_private/feedback_private_api.h"
21 #include "chrome/browser/extensions/api/font_settings/font_settings_api.h"
22 #include "chrome/browser/extensions/api/gcd_private/gcd_private_api.h"
23 #include "chrome/browser/extensions/api/history/history_api.h"
24 #include "chrome/browser/extensions/api/hotword_private/hotword_private_api.h"
25 #include "chrome/browser/extensions/api/identity/identity_api.h"
26 #include "chrome/browser/extensions/api/location/location_manager.h"
27 #include "chrome/browser/extensions/api/mdns/mdns_api.h"
28 #include "chrome/browser/extensions/api/omnibox/omnibox_api.h"
29 #include "chrome/browser/extensions/api/passwords_private/passwords_private_event_router_factory.h"
30 #include "chrome/browser/extensions/api/preference/chrome_direct_setting_api.h"
31 #include "chrome/browser/extensions/api/preference/preference_api.h"
32 #include "chrome/browser/extensions/api/processes/processes_api.h"
33 #include "chrome/browser/extensions/api/screenlock_private/screenlock_private_api.h"
34 #include "chrome/browser/extensions/api/search_engines_private/search_engines_private_event_router_factory.h"
35 #include "chrome/browser/extensions/api/sessions/sessions_api.h"
36 #include "chrome/browser/extensions/api/settings_overrides/settings_overrides_api.h"
37 #include "chrome/browser/extensions/api/settings_private/settings_private_event_router_factory.h"
38 #include "chrome/browser/extensions/api/signed_in_devices/signed_in_devices_manager.h"
39 #include "chrome/browser/extensions/api/streams_private/streams_private_api.h"
40 #include "chrome/browser/extensions/api/tab_capture/tab_capture_registry.h"
41 #include "chrome/browser/extensions/api/tabs/tabs_windows_api.h"
42 #include "chrome/browser/extensions/api/web_navigation/web_navigation_api.h"
43 #include "chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h"
44 #include "chrome/browser/extensions/api/webstore/webstore_api.h"
45 #include "chrome/browser/extensions/extension_garbage_collector_factory.h"
46 #include "chrome/browser/extensions/extension_gcm_app_handler.h"
47 #include "chrome/browser/extensions/extension_storage_monitor_factory.h"
48 #include "chrome/browser/extensions/extension_system_factory.h"
49 #include "chrome/browser/extensions/extension_toolbar_model_factory.h"
50 #include "chrome/browser/extensions/extension_web_ui_override_registrar.h"
51 #include "chrome/browser/extensions/install_tracker_factory.h"
52 #include "chrome/browser/extensions/install_verifier_factory.h"
53 #include "chrome/browser/extensions/menu_manager_factory.h"
54 #include "chrome/browser/extensions/plugin_manager.h"
55 #include "chrome/browser/extensions/token_cache/token_cache_service_factory.h"
56 #include "chrome/browser/extensions/warning_badge_service_factory.h"
57 #include "chrome/browser/speech/extension_api/tts_extension_api.h"
59 #if defined(OS_CHROMEOS)
60 #include "chrome/browser/chromeos/extensions/file_manager/event_router_factory.h"
61 #include "chrome/browser/chromeos/extensions/input_method_api.h"
62 #include "chrome/browser/chromeos/extensions/media_player_api.h"
63 #include "chrome/browser/extensions/api/input_ime/input_ime_api.h"
64 #include "chrome/browser/extensions/api/log_private/log_private_api.h"
67 #if defined(ENABLE_SPELLCHECK)
68 #include "chrome/browser/extensions/api/spellcheck/spellcheck_api.h"
71 namespace chrome_extensions
{
73 void EnsureBrowserContextKeyedServiceFactoriesBuilt() {
74 extensions::ActivityLog::GetFactoryInstance();
75 extensions::ActivityLogAPI::GetFactoryInstance();
76 extensions::AutofillPrivateEventRouterFactory::GetInstance();
77 extensions::BookmarksAPI::GetFactoryInstance();
78 extensions::BookmarkManagerPrivateAPI::GetFactoryInstance();
79 extensions::BrailleDisplayPrivateAPI::GetFactoryInstance();
80 extensions::chromedirectsetting::ChromeDirectSettingAPI::GetFactoryInstance();
81 extensions::CommandService::GetFactoryInstance();
82 extensions::ContentSettingsService::GetFactoryInstance();
83 extensions::CookiesAPI::GetFactoryInstance();
84 extensions::DeveloperPrivateAPI::GetFactoryInstance();
85 extensions::DialAPIFactory::GetInstance();
86 extensions::EasyUnlockPrivateAPI::GetFactoryInstance();
87 extensions::ExtensionActionAPI::GetFactoryInstance();
88 extensions::ExtensionGarbageCollectorFactory::GetInstance();
89 extensions::ExtensionStorageMonitorFactory::GetInstance();
90 extensions::ExtensionSystemFactory::GetInstance();
91 extensions::ExtensionToolbarModelFactory::GetInstance();
92 extensions::ExtensionWebUIOverrideRegistrar::GetFactoryInstance();
93 extensions::FeedbackPrivateAPI::GetFactoryInstance();
94 extensions::FontSettingsAPI::GetFactoryInstance();
95 extensions::GcdPrivateAPI::GetFactoryInstance();
96 extensions::HistoryAPI::GetFactoryInstance();
97 extensions::HotwordPrivateEventService::GetFactoryInstance();
98 extensions::IdentityAPI::GetFactoryInstance();
99 extensions::InstallTrackerFactory::GetInstance();
100 extensions::InstallVerifierFactory::GetInstance();
101 #if defined(OS_CHROMEOS)
102 extensions::InputImeAPI::GetFactoryInstance();
103 extensions::InputMethodAPI::GetFactoryInstance();
105 extensions::LocationManager::GetFactoryInstance();
106 #if defined(OS_CHROMEOS)
107 extensions::LogPrivateAPI::GetFactoryInstance();
109 extensions::MDnsAPI::GetFactoryInstance();
110 #if defined(OS_CHROMEOS)
111 extensions::MediaPlayerAPI::GetFactoryInstance();
113 extensions::MenuManagerFactory::GetInstance();
114 extensions::OmniboxAPI::GetFactoryInstance();
115 extensions::PasswordsPrivateEventRouterFactory::GetInstance();
116 #if defined(ENABLE_PLUGINS)
117 extensions::PluginManager::GetFactoryInstance();
118 #endif // defined(ENABLE_PLUGINS)
119 extensions::PreferenceAPI::GetFactoryInstance();
120 extensions::ProcessesAPI::GetFactoryInstance();
121 extensions::ScreenlockPrivateEventRouter::GetFactoryInstance();
122 extensions::SearchEnginesPrivateEventRouterFactory::GetInstance();
123 extensions::SessionsAPI::GetFactoryInstance();
124 extensions::SettingsPrivateEventRouterFactory::GetInstance();
125 extensions::SettingsOverridesAPI::GetFactoryInstance();
126 extensions::SignedInDevicesManager::GetFactoryInstance();
127 #if defined(ENABLE_SPELLCHECK)
128 extensions::SpellcheckAPI::GetFactoryInstance();
130 extensions::StreamsPrivateAPI::GetFactoryInstance();
131 extensions::TabCaptureRegistry::GetFactoryInstance();
132 extensions::TabsWindowsAPI::GetFactoryInstance();
133 extensions::TtsAPI::GetFactoryInstance();
134 extensions::WarningBadgeServiceFactory::GetInstance();
135 extensions::WebNavigationAPI::GetFactoryInstance();
136 extensions::WebrtcAudioPrivateEventService::GetFactoryInstance();
137 extensions::WebstoreAPI::GetFactoryInstance();
138 #if defined(OS_CHROMEOS)
139 file_manager::EventRouterFactory::GetInstance();
141 TokenCacheServiceFactory::GetInstance();
142 extensions::ExtensionGCMAppHandler::GetFactoryInstance();
145 } // namespace chrome_extensions