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

Side by Side Diff: chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc

Issue 20794002: Creates a flag to enable/disable spellchecker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Try again Created 7 years, 4 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/chrome_browser_main_extra_parts_profiles.h" 5 #include "chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h"
6 6
7 #include "apps/app_load_service_factory.h" 7 #include "apps/app_load_service_factory.h"
8 #include "apps/app_restore_service_factory.h" 8 #include "apps/app_restore_service_factory.h"
9 #include "apps/shell_window_geometry_cache.h" 9 #include "apps/shell_window_geometry_cache.h"
10 #include "chrome/browser/apps/shortcut_manager_factory.h" 10 #include "chrome/browser/apps/shortcut_manager_factory.h"
(...skipping 28 matching lines...) Expand all
39 #include "chrome/browser/extensions/api/management/management_api.h" 39 #include "chrome/browser/extensions/api/management/management_api.h"
40 #include "chrome/browser/extensions/api/media_galleries_private/media_galleries_ private_api.h" 40 #include "chrome/browser/extensions/api/media_galleries_private/media_galleries_ private_api.h"
41 #include "chrome/browser/extensions/api/omnibox/omnibox_api.h" 41 #include "chrome/browser/extensions/api/omnibox/omnibox_api.h"
42 #include "chrome/browser/extensions/api/preference/chrome_direct_setting_api.h" 42 #include "chrome/browser/extensions/api/preference/chrome_direct_setting_api.h"
43 #include "chrome/browser/extensions/api/preference/preference_api.h" 43 #include "chrome/browser/extensions/api/preference/preference_api.h"
44 #include "chrome/browser/extensions/api/processes/processes_api.h" 44 #include "chrome/browser/extensions/api/processes/processes_api.h"
45 #include "chrome/browser/extensions/api/push_messaging/push_messaging_api.h" 45 #include "chrome/browser/extensions/api/push_messaging/push_messaging_api.h"
46 #include "chrome/browser/extensions/api/serial/serial_connection.h" 46 #include "chrome/browser/extensions/api/serial/serial_connection.h"
47 #include "chrome/browser/extensions/api/session_restore/session_restore_api.h" 47 #include "chrome/browser/extensions/api/session_restore/session_restore_api.h"
48 #include "chrome/browser/extensions/api/socket/socket.h" 48 #include "chrome/browser/extensions/api/socket/socket.h"
49 #include "chrome/browser/extensions/api/spellcheck/spellcheck_api.h"
50 #include "chrome/browser/extensions/api/streams_private/streams_private_api.h" 49 #include "chrome/browser/extensions/api/streams_private/streams_private_api.h"
51 #include "chrome/browser/extensions/api/system_info/system_info_api.h" 50 #include "chrome/browser/extensions/api/system_info/system_info_api.h"
52 #include "chrome/browser/extensions/api/tab_capture/tab_capture_registry_factory .h" 51 #include "chrome/browser/extensions/api/tab_capture/tab_capture_registry_factory .h"
53 #include "chrome/browser/extensions/api/tabs/tabs_windows_api.h" 52 #include "chrome/browser/extensions/api/tabs/tabs_windows_api.h"
54 #include "chrome/browser/extensions/api/usb/usb_device_resource.h" 53 #include "chrome/browser/extensions/api/usb/usb_device_resource.h"
55 #include "chrome/browser/extensions/api/web_navigation/web_navigation_api.h" 54 #include "chrome/browser/extensions/api/web_navigation/web_navigation_api.h"
56 #include "chrome/browser/extensions/extension_prefs_factory.h" 55 #include "chrome/browser/extensions/extension_prefs_factory.h"
57 #include "chrome/browser/extensions/extension_system_factory.h" 56 #include "chrome/browser/extensions/extension_system_factory.h"
58 #include "chrome/browser/extensions/extension_web_ui_override_registrar.h" 57 #include "chrome/browser/extensions/extension_web_ui_override_registrar.h"
59 #include "chrome/browser/extensions/install_tracker_factory.h" 58 #include "chrome/browser/extensions/install_tracker_factory.h"
(...skipping 19 matching lines...) Expand all
79 #include "chrome/browser/profiles/gaia_info_update_service_factory.h" 78 #include "chrome/browser/profiles/gaia_info_update_service_factory.h"
80 #include "chrome/browser/search/instant_service_factory.h" 79 #include "chrome/browser/search/instant_service_factory.h"
81 #include "chrome/browser/search_engines/template_url_fetcher_factory.h" 80 #include "chrome/browser/search_engines/template_url_fetcher_factory.h"
82 #include "chrome/browser/search_engines/template_url_service_factory.h" 81 #include "chrome/browser/search_engines/template_url_service_factory.h"
83 #include "chrome/browser/sessions/session_service_factory.h" 82 #include "chrome/browser/sessions/session_service_factory.h"
84 #include "chrome/browser/sessions/tab_restore_service_factory.h" 83 #include "chrome/browser/sessions/tab_restore_service_factory.h"
85 #include "chrome/browser/signin/about_signin_internals_factory.h" 84 #include "chrome/browser/signin/about_signin_internals_factory.h"
86 #include "chrome/browser/signin/signin_manager_factory.h" 85 #include "chrome/browser/signin/signin_manager_factory.h"
87 #include "chrome/browser/signin/token_service_factory.h" 86 #include "chrome/browser/signin/token_service_factory.h"
88 #include "chrome/browser/speech/extension_api/tts_extension_api.h" 87 #include "chrome/browser/speech/extension_api/tts_extension_api.h"
89 #include "chrome/browser/spellchecker/spellcheck_factory.h"
90 #include "chrome/browser/sync/profile_sync_service_factory.h" 88 #include "chrome/browser/sync/profile_sync_service_factory.h"
91 #include "chrome/browser/themes/theme_service_factory.h" 89 #include "chrome/browser/themes/theme_service_factory.h"
92 #include "chrome/browser/thumbnails/thumbnail_service_factory.h" 90 #include "chrome/browser/thumbnails/thumbnail_service_factory.h"
93 #include "chrome/browser/ui/find_bar/find_bar_state_factory.h" 91 #include "chrome/browser/ui/find_bar/find_bar_state_factory.h"
94 #include "chrome/browser/ui/global_error/global_error_service_factory.h" 92 #include "chrome/browser/ui/global_error/global_error_service_factory.h"
95 #include "chrome/browser/ui/tabs/pinned_tab_service_factory.h" 93 #include "chrome/browser/ui/tabs/pinned_tab_service_factory.h"
96 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h" 94 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h"
97 #include "chrome/browser/user_style_sheet_watcher_factory.h" 95 #include "chrome/browser/user_style_sheet_watcher_factory.h"
98 #include "chrome/browser/webdata/web_data_service_factory.h" 96 #include "chrome/browser/webdata/web_data_service_factory.h"
99 97
(...skipping 28 matching lines...) Expand all
128 126
129 #if defined(USE_AURA) 127 #if defined(USE_AURA)
130 #include "chrome/browser/ui/gesture_prefs_observer_factory_aura.h" 128 #include "chrome/browser/ui/gesture_prefs_observer_factory_aura.h"
131 #endif 129 #endif
132 130
133 #if !defined(OS_ANDROID) 131 #if !defined(OS_ANDROID)
134 #include "chrome/browser/media_galleries/media_galleries_preferences_factory.h" 132 #include "chrome/browser/media_galleries/media_galleries_preferences_factory.h"
135 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service_fac tory.h" 133 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service_fac tory.h"
136 #endif 134 #endif
137 135
136 #if defined(ENABLE_SPELLCHECK)
137 #include "chrome/browser/extensions/api/spellcheck/spellcheck_api.h"
138 #include "chrome/browser/spellchecker/spellcheck_factory.h"
139 #endif
140
138 namespace chrome { 141 namespace chrome {
139 142
140 void AddProfilesExtraParts(ChromeBrowserMainParts* main_parts) { 143 void AddProfilesExtraParts(ChromeBrowserMainParts* main_parts) {
141 main_parts->AddParts(new ChromeBrowserMainExtraPartsProfiles()); 144 main_parts->AddParts(new ChromeBrowserMainExtraPartsProfiles());
142 } 145 }
143 146
144 } // namespace chrome 147 } // namespace chrome
145 148
146 ChromeBrowserMainExtraPartsProfiles::ChromeBrowserMainExtraPartsProfiles() { 149 ChromeBrowserMainExtraPartsProfiles::ChromeBrowserMainExtraPartsProfiles() {
147 } 150 }
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 extensions::MediaPlayerAPI::GetFactoryInstance(); 232 extensions::MediaPlayerAPI::GetFactoryInstance();
230 #endif 233 #endif
231 extensions::OmniboxAPI::GetFactoryInstance(); 234 extensions::OmniboxAPI::GetFactoryInstance();
232 #if defined(ENABLE_PLUGINS) 235 #if defined(ENABLE_PLUGINS)
233 extensions::PluginManager::GetFactoryInstance(); 236 extensions::PluginManager::GetFactoryInstance();
234 #endif // defined(ENABLE_PLUGINS) 237 #endif // defined(ENABLE_PLUGINS)
235 extensions::PreferenceAPI::GetFactoryInstance(); 238 extensions::PreferenceAPI::GetFactoryInstance();
236 extensions::ProcessesAPI::GetFactoryInstance(); 239 extensions::ProcessesAPI::GetFactoryInstance();
237 extensions::PushMessagingAPI::GetFactoryInstance(); 240 extensions::PushMessagingAPI::GetFactoryInstance();
238 extensions::SessionRestoreAPI::GetFactoryInstance(); 241 extensions::SessionRestoreAPI::GetFactoryInstance();
242 #if defined(ENABLE_SPELLCHECK)
239 extensions::SpellcheckAPI::GetFactoryInstance(); 243 extensions::SpellcheckAPI::GetFactoryInstance();
244 #endif
240 extensions::StreamsPrivateAPI::GetFactoryInstance(); 245 extensions::StreamsPrivateAPI::GetFactoryInstance();
241 extensions::SystemInfoAPI::GetFactoryInstance(); 246 extensions::SystemInfoAPI::GetFactoryInstance();
242 extensions::SuggestedLinksRegistryFactory::GetInstance(); 247 extensions::SuggestedLinksRegistryFactory::GetInstance();
243 extensions::TabCaptureRegistryFactory::GetInstance(); 248 extensions::TabCaptureRegistryFactory::GetInstance();
244 extensions::TabsWindowsAPI::GetFactoryInstance(); 249 extensions::TabsWindowsAPI::GetFactoryInstance();
245 extensions::TtsAPI::GetFactoryInstance(); 250 extensions::TtsAPI::GetFactoryInstance();
246 extensions::WebNavigationAPI::GetFactoryInstance(); 251 extensions::WebNavigationAPI::GetFactoryInstance();
247 #endif // defined(ENABLE_EXTENSIONS) 252 #endif // defined(ENABLE_EXTENSIONS)
248 FaviconServiceFactory::GetInstance(); 253 FaviconServiceFactory::GetInstance();
249 #if defined(OS_CHROMEOS) && defined(FILE_MANAGER_EXTENSION) 254 #if defined(OS_CHROMEOS) && defined(FILE_MANAGER_EXTENSION)
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 predictors::ResourcePrefetchPredictorFactory::GetInstance(); 295 predictors::ResourcePrefetchPredictorFactory::GetInstance();
291 prerender::PrerenderManagerFactory::GetInstance(); 296 prerender::PrerenderManagerFactory::GetInstance();
292 prerender::PrerenderLinkManagerFactory::GetInstance(); 297 prerender::PrerenderLinkManagerFactory::GetInstance();
293 ProfileSyncServiceFactory::GetInstance(); 298 ProfileSyncServiceFactory::GetInstance();
294 ProtocolHandlerRegistryFactory::GetInstance(); 299 ProtocolHandlerRegistryFactory::GetInstance();
295 #if defined(ENABLE_SESSION_SERVICE) 300 #if defined(ENABLE_SESSION_SERVICE)
296 SessionServiceFactory::GetInstance(); 301 SessionServiceFactory::GetInstance();
297 #endif 302 #endif
298 ShortcutsBackendFactory::GetInstance(); 303 ShortcutsBackendFactory::GetInstance();
299 SigninManagerFactory::GetInstance(); 304 SigninManagerFactory::GetInstance();
305 #if defined(ENABLE_SPELLCHECK)
300 SpellcheckServiceFactory::GetInstance(); 306 SpellcheckServiceFactory::GetInstance();
307 #endif
301 ThumbnailServiceFactory::GetInstance(); 308 ThumbnailServiceFactory::GetInstance();
302 TabRestoreServiceFactory::GetInstance(); 309 TabRestoreServiceFactory::GetInstance();
303 TemplateURLFetcherFactory::GetInstance(); 310 TemplateURLFetcherFactory::GetInstance();
304 TemplateURLServiceFactory::GetInstance(); 311 TemplateURLServiceFactory::GetInstance();
305 #if defined(ENABLE_THEMES) 312 #if defined(ENABLE_THEMES)
306 ThemeServiceFactory::GetInstance(); 313 ThemeServiceFactory::GetInstance();
307 #endif 314 #endif
308 TokenCacheServiceFactory::GetInstance(); 315 TokenCacheServiceFactory::GetInstance();
309 TokenServiceFactory::GetInstance(); 316 TokenServiceFactory::GetInstance();
310 #if !defined(OS_ANDROID) 317 #if !defined(OS_ANDROID)
311 UserStyleSheetWatcherFactory::GetInstance(); 318 UserStyleSheetWatcherFactory::GetInstance();
312 #endif 319 #endif
313 WebDataServiceFactory::GetInstance(); 320 WebDataServiceFactory::GetInstance();
314 } 321 }
315 322
316 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { 323 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() {
317 EnsureBrowserContextKeyedServiceFactoriesBuilt(); 324 EnsureBrowserContextKeyedServiceFactoriesBuilt();
318 } 325 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/sync/profile_sync_components_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698