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

Unified Diff: components/spellcheck/common/spellcheck_features.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: components/spellcheck/common/spellcheck_features.cc
diff --git a/components/spellcheck/common/spellcheck_features.cc b/components/spellcheck/common/spellcheck_features.cc
index 33b2271f243cb5cc69c926ad22f67f619711d799..f6e8bb31d5fb1030d1cfa7eba00098f02f48dc1d 100644
--- a/components/spellcheck/common/spellcheck_features.cc
+++ b/components/spellcheck/common/spellcheck_features.cc
@@ -5,10 +5,11 @@
#include "components/spellcheck/common/spellcheck_features.h"
#include "base/sys_info.h"
+#include "components/spellcheck/spellcheck_build_features.h"
namespace spellcheck {
-#if defined(ENABLE_SPELLCHECK) && defined(OS_ANDROID)
+#if BUILDFLAG(ENABLE_SPELLCHECK) && defined(OS_ANDROID)
// Enables/disables Android spellchecker.
const base::Feature kAndroidSpellChecker{
@@ -32,6 +33,6 @@ bool IsAndroidSpellCheckFeatureEnabled() {
return false;
}
-#endif // defined(ENABLE_SPELLCHECK) && defined(OS_ANDROID)
+#endif // BUILDFLAG(ENABLE_SPELLCHECK) && defined(OS_ANDROID)
} // namespace spellcheck
« no previous file with comments | « components/spellcheck/common/spellcheck_features.h ('k') | components/spellcheck/common/spellcheck_message_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698