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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
diff --git a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
index 2dcb1d243eeac1b469a77a4baf132cea6fde4add..0c6091e65eb1852aeb6ebad0d187212376726140 100644
--- a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
+++ b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
@@ -70,6 +70,7 @@
#include "chrome/browser/undo/bookmark_undo_service_factory.h"
#include "chrome/browser/web_data_service_factory.h"
#include "chrome/common/features.h"
+#include "components/spellcheck/spellcheck_build_features.h"
#include "extensions/features/features.h"
#include "printing/features/features.h"
@@ -133,7 +134,7 @@
#include "chrome/browser/profile_resetter/triggered_profile_resetter_factory.h"
#endif
-#if defined(ENABLE_SPELLCHECK)
+#if BUILDFLAG(ENABLE_SPELLCHECK)
#include "chrome/browser/spellchecker/spellcheck_factory.h"
#endif
@@ -326,7 +327,7 @@ EnsureBrowserContextKeyedServiceFactoriesBuilt() {
if (SiteEngagementService::IsEnabled())
SiteEngagementServiceFactory::GetInstance();
-#if defined(ENABLE_SPELLCHECK)
+#if BUILDFLAG(ENABLE_SPELLCHECK)
SpellcheckServiceFactory::GetInstance();
#endif
suggestions::SuggestionsServiceFactory::GetInstance();

Powered by Google App Engine
This is Rietveld 408576698