Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Side by Side Diff: chrome/browser/extensions/browser_context_keyed_service_factories.cc

Issue 2495193003: Convert spellcheck to a buildflag header. (Closed)
Patch Set: Comment Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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/extensions/browser_context_keyed_service_factories.h" 5 #include "chrome/browser/extensions/browser_context_keyed_service_factories.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "chrome/browser/extensions/activity_log/activity_log.h" 8 #include "chrome/browser/extensions/activity_log/activity_log.h"
9 #include "chrome/browser/extensions/api/activity_log_private/activity_log_privat e_api.h" 9 #include "chrome/browser/extensions/api/activity_log_private/activity_log_privat e_api.h"
10 #include "chrome/browser/extensions/api/autofill_private/autofill_private_event_ router_factory.h" 10 #include "chrome/browser/extensions/api/autofill_private/autofill_private_event_ router_factory.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #include "chrome/browser/extensions/extension_web_ui_override_registrar.h" 46 #include "chrome/browser/extensions/extension_web_ui_override_registrar.h"
47 #include "chrome/browser/extensions/install_tracker_factory.h" 47 #include "chrome/browser/extensions/install_tracker_factory.h"
48 #include "chrome/browser/extensions/install_verifier_factory.h" 48 #include "chrome/browser/extensions/install_verifier_factory.h"
49 #include "chrome/browser/extensions/menu_manager_factory.h" 49 #include "chrome/browser/extensions/menu_manager_factory.h"
50 #include "chrome/browser/extensions/plugin_manager.h" 50 #include "chrome/browser/extensions/plugin_manager.h"
51 #include "chrome/browser/extensions/token_cache/token_cache_service_factory.h" 51 #include "chrome/browser/extensions/token_cache/token_cache_service_factory.h"
52 #include "chrome/browser/extensions/warning_badge_service_factory.h" 52 #include "chrome/browser/extensions/warning_badge_service_factory.h"
53 #include "chrome/browser/speech/extension_api/tts_extension_api.h" 53 #include "chrome/browser/speech/extension_api/tts_extension_api.h"
54 #include "chrome/browser/ui/toolbar/toolbar_actions_model_factory.h" 54 #include "chrome/browser/ui/toolbar/toolbar_actions_model_factory.h"
55 #include "chrome/common/features.h" 55 #include "chrome/common/features.h"
56 #include "components/spellcheck/spellcheck_build_features.h"
56 #include "extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_api.h " 57 #include "extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_api.h "
57 58
58 #if defined(OS_CHROMEOS) 59 #if defined(OS_CHROMEOS)
59 #include "chrome/browser/chromeos/extensions/file_manager/event_router_factory.h " 60 #include "chrome/browser/chromeos/extensions/file_manager/event_router_factory.h "
60 #include "chrome/browser/chromeos/extensions/input_method_api.h" 61 #include "chrome/browser/chromeos/extensions/input_method_api.h"
61 #include "chrome/browser/chromeos/extensions/media_player_api.h" 62 #include "chrome/browser/chromeos/extensions/media_player_api.h"
62 #include "chrome/browser/extensions/api/input_ime/input_ime_api.h" 63 #include "chrome/browser/extensions/api/input_ime/input_ime_api.h"
63 #include "chrome/browser/extensions/api/log_private/log_private_api.h" 64 #include "chrome/browser/extensions/api/log_private/log_private_api.h"
64 #elif defined(OS_LINUX) || defined(OS_WIN) 65 #elif defined(OS_LINUX) || defined(OS_WIN)
65 #include "chrome/browser/extensions/api/input_ime/input_ime_api.h" 66 #include "chrome/browser/extensions/api/input_ime/input_ime_api.h"
66 #endif 67 #endif
67 68
68 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) 69 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY)
69 #include "chrome/browser/extensions/api/gcd_private/gcd_private_api.h" 70 #include "chrome/browser/extensions/api/gcd_private/gcd_private_api.h"
70 #include "chrome/browser/extensions/api/mdns/mdns_api.h" 71 #include "chrome/browser/extensions/api/mdns/mdns_api.h"
71 #endif 72 #endif
72 73
73 #if defined(ENABLE_SPELLCHECK) 74 #if BUILDFLAG(ENABLE_SPELLCHECK)
74 #include "chrome/browser/extensions/api/spellcheck/spellcheck_api.h" 75 #include "chrome/browser/extensions/api/spellcheck/spellcheck_api.h"
75 #endif 76 #endif
76 77
77 namespace chrome_extensions { 78 namespace chrome_extensions {
78 79
79 void EnsureBrowserContextKeyedServiceFactoriesBuilt() { 80 void EnsureBrowserContextKeyedServiceFactoriesBuilt() {
80 extensions::ActivityLog::GetFactoryInstance(); 81 extensions::ActivityLog::GetFactoryInstance();
81 extensions::ActivityLogAPI::GetFactoryInstance(); 82 extensions::ActivityLogAPI::GetFactoryInstance();
82 extensions::AutofillPrivateEventRouterFactory::GetInstance(); 83 extensions::AutofillPrivateEventRouterFactory::GetInstance();
83 extensions::BluetoothLowEnergyAPI::GetFactoryInstance(); 84 extensions::BluetoothLowEnergyAPI::GetFactoryInstance();
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 #if defined(ENABLE_PLUGINS) 129 #if defined(ENABLE_PLUGINS)
129 extensions::PluginManager::GetFactoryInstance(); 130 extensions::PluginManager::GetFactoryInstance();
130 #endif 131 #endif
131 extensions::PreferenceAPI::GetFactoryInstance(); 132 extensions::PreferenceAPI::GetFactoryInstance();
132 extensions::ProcessesAPI::GetFactoryInstance(); 133 extensions::ProcessesAPI::GetFactoryInstance();
133 extensions::ScreenlockPrivateEventRouter::GetFactoryInstance(); 134 extensions::ScreenlockPrivateEventRouter::GetFactoryInstance();
134 extensions::SessionsAPI::GetFactoryInstance(); 135 extensions::SessionsAPI::GetFactoryInstance();
135 extensions::SettingsPrivateEventRouterFactory::GetInstance(); 136 extensions::SettingsPrivateEventRouterFactory::GetInstance();
136 extensions::SettingsOverridesAPI::GetFactoryInstance(); 137 extensions::SettingsOverridesAPI::GetFactoryInstance();
137 extensions::SignedInDevicesManager::GetFactoryInstance(); 138 extensions::SignedInDevicesManager::GetFactoryInstance();
138 #if defined(ENABLE_SPELLCHECK) 139 #if BUILDFLAG(ENABLE_SPELLCHECK)
139 extensions::SpellcheckAPI::GetFactoryInstance(); 140 extensions::SpellcheckAPI::GetFactoryInstance();
140 #endif 141 #endif
141 extensions::StreamsPrivateAPI::GetFactoryInstance(); 142 extensions::StreamsPrivateAPI::GetFactoryInstance();
142 extensions::TabCaptureRegistry::GetFactoryInstance(); 143 extensions::TabCaptureRegistry::GetFactoryInstance();
143 extensions::TabsWindowsAPI::GetFactoryInstance(); 144 extensions::TabsWindowsAPI::GetFactoryInstance();
144 extensions::TtsAPI::GetFactoryInstance(); 145 extensions::TtsAPI::GetFactoryInstance();
145 extensions::WarningBadgeServiceFactory::GetInstance(); 146 extensions::WarningBadgeServiceFactory::GetInstance();
146 extensions::WebNavigationAPI::GetFactoryInstance(); 147 extensions::WebNavigationAPI::GetFactoryInstance();
147 extensions::WebrtcAudioPrivateEventService::GetFactoryInstance(); 148 extensions::WebrtcAudioPrivateEventService::GetFactoryInstance();
148 #if defined(OS_CHROMEOS) 149 #if defined(OS_CHROMEOS)
149 file_manager::EventRouterFactory::GetInstance(); 150 file_manager::EventRouterFactory::GetInstance();
150 #endif 151 #endif
151 TokenCacheServiceFactory::GetInstance(); 152 TokenCacheServiceFactory::GetInstance();
152 ToolbarActionsModelFactory::GetInstance(); 153 ToolbarActionsModelFactory::GetInstance();
153 extensions::ExtensionGCMAppHandler::GetFactoryInstance(); 154 extensions::ExtensionGCMAppHandler::GetFactoryInstance();
154 } 155 }
155 156
156 } // namespace chrome_extensions 157 } // namespace chrome_extensions
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/policy/configuration_policy_handler_list_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698