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

Side by Side Diff: chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.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 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 <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 #include "chrome/browser/themes/theme_service_factory.h" 63 #include "chrome/browser/themes/theme_service_factory.h"
64 #include "chrome/browser/thumbnails/thumbnail_service_factory.h" 64 #include "chrome/browser/thumbnails/thumbnail_service_factory.h"
65 #include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h" 65 #include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h"
66 #include "chrome/browser/ui/find_bar/find_bar_state_factory.h" 66 #include "chrome/browser/ui/find_bar/find_bar_state_factory.h"
67 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" 67 #include "chrome/browser/ui/prefs/prefs_tab_helper.h"
68 #include "chrome/browser/ui/tabs/pinned_tab_service_factory.h" 68 #include "chrome/browser/ui/tabs/pinned_tab_service_factory.h"
69 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h" 69 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h"
70 #include "chrome/browser/undo/bookmark_undo_service_factory.h" 70 #include "chrome/browser/undo/bookmark_undo_service_factory.h"
71 #include "chrome/browser/web_data_service_factory.h" 71 #include "chrome/browser/web_data_service_factory.h"
72 #include "chrome/common/features.h" 72 #include "chrome/common/features.h"
73 #include "components/spellcheck/spellcheck_build_features.h"
73 #include "extensions/features/features.h" 74 #include "extensions/features/features.h"
74 #include "printing/features/features.h" 75 #include "printing/features/features.h"
75 76
76 #if BUILDFLAG(ENABLE_EXTENSIONS) 77 #if BUILDFLAG(ENABLE_EXTENSIONS)
77 #include "apps/browser_context_keyed_service_factories.h" 78 #include "apps/browser_context_keyed_service_factories.h"
78 #include "chrome/browser/apps/shortcut_manager_factory.h" 79 #include "chrome/browser/apps/shortcut_manager_factory.h"
79 #include "chrome/browser/extensions/api/networking_private/networking_private_ui _delegate_factory_impl.h" 80 #include "chrome/browser/extensions/api/networking_private/networking_private_ui _delegate_factory_impl.h"
80 #include "chrome/browser/extensions/api/networking_private/networking_private_ve rify_delegate_factory_impl.h" 81 #include "chrome/browser/extensions/api/networking_private/networking_private_ve rify_delegate_factory_impl.h"
81 #include "chrome/browser/extensions/browser_context_keyed_service_factories.h" 82 #include "chrome/browser/extensions/browser_context_keyed_service_factories.h"
82 #include "chrome/browser/extensions/extension_management.h" 83 #include "chrome/browser/extensions/extension_management.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 #include "chrome/browser/android/data_usage/data_use_ui_tab_model_factory.h" 127 #include "chrome/browser/android/data_usage/data_use_ui_tab_model_factory.h"
127 #else 128 #else
128 #include "chrome/browser/ui/global_error/global_error_service_factory.h" 129 #include "chrome/browser/ui/global_error/global_error_service_factory.h"
129 #include "chrome/browser/usb/usb_chooser_context_factory.h" 130 #include "chrome/browser/usb/usb_chooser_context_factory.h"
130 #endif 131 #endif
131 132
132 #if defined(OS_WIN) 133 #if defined(OS_WIN)
133 #include "chrome/browser/profile_resetter/triggered_profile_resetter_factory.h" 134 #include "chrome/browser/profile_resetter/triggered_profile_resetter_factory.h"
134 #endif 135 #endif
135 136
136 #if defined(ENABLE_SPELLCHECK) 137 #if BUILDFLAG(ENABLE_SPELLCHECK)
137 #include "chrome/browser/spellchecker/spellcheck_factory.h" 138 #include "chrome/browser/spellchecker/spellcheck_factory.h"
138 #endif 139 #endif
139 140
140 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) 141 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY)
141 #include "chrome/browser/printing/cloud_print/privet_notifications_factory.h" 142 #include "chrome/browser/printing/cloud_print/privet_notifications_factory.h"
142 #endif 143 #endif
143 144
144 #if defined(ENABLE_MEDIA_ROUTER) 145 #if defined(ENABLE_MEDIA_ROUTER)
145 #include "chrome/browser/media/router/media_router_factory.h" 146 #include "chrome/browser/media/router/media_router_factory.h"
146 #if !defined(OS_ANDROID) 147 #if !defined(OS_ANDROID)
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 ProtocolHandlerRegistryFactory::GetInstance(); 320 ProtocolHandlerRegistryFactory::GetInstance();
320 #if BUILDFLAG(ENABLE_SESSION_SERVICE) 321 #if BUILDFLAG(ENABLE_SESSION_SERVICE)
321 SessionServiceFactory::GetInstance(); 322 SessionServiceFactory::GetInstance();
322 #endif 323 #endif
323 ShortcutsBackendFactory::GetInstance(); 324 ShortcutsBackendFactory::GetInstance();
324 SigninManagerFactory::GetInstance(); 325 SigninManagerFactory::GetInstance();
325 326
326 if (SiteEngagementService::IsEnabled()) 327 if (SiteEngagementService::IsEnabled())
327 SiteEngagementServiceFactory::GetInstance(); 328 SiteEngagementServiceFactory::GetInstance();
328 329
329 #if defined(ENABLE_SPELLCHECK) 330 #if BUILDFLAG(ENABLE_SPELLCHECK)
330 SpellcheckServiceFactory::GetInstance(); 331 SpellcheckServiceFactory::GetInstance();
331 #endif 332 #endif
332 suggestions::SuggestionsServiceFactory::GetInstance(); 333 suggestions::SuggestionsServiceFactory::GetInstance();
333 ThumbnailServiceFactory::GetInstance(); 334 ThumbnailServiceFactory::GetInstance();
334 TabRestoreServiceFactory::GetInstance(); 335 TabRestoreServiceFactory::GetInstance();
335 TemplateURLFetcherFactory::GetInstance(); 336 TemplateURLFetcherFactory::GetInstance();
336 TemplateURLServiceFactory::GetInstance(); 337 TemplateURLServiceFactory::GetInstance();
337 #if defined(ENABLE_THEMES) 338 #if defined(ENABLE_THEMES)
338 ThemeServiceFactory::GetInstance(); 339 ThemeServiceFactory::GetInstance();
339 #endif 340 #endif
340 #if defined(OS_WIN) 341 #if defined(OS_WIN)
341 TriggeredProfileResetterFactory::GetInstance(); 342 TriggeredProfileResetterFactory::GetInstance();
342 #endif 343 #endif
343 #if !defined(OS_ANDROID) 344 #if !defined(OS_ANDROID)
344 UsbChooserContextFactory::GetInstance(); 345 UsbChooserContextFactory::GetInstance();
345 #endif 346 #endif
346 WebDataServiceFactory::GetInstance(); 347 WebDataServiceFactory::GetInstance();
347 } 348 }
348 349
349 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { 350 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() {
350 EnsureBrowserContextKeyedServiceFactoriesBuilt(); 351 EnsureBrowserContextKeyedServiceFactoriesBuilt();
351 } 352 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698