Componentize spellcheck [1]: create component and move switches there.
Current spellcheck code lives in the chrome/ layer, but we want to make it
available in webview as well. Therefore this effort of making a dedicated
spellcheck component. As a first step we create a //components/spellcheck
and move the chrome spellcheck related switches there.
BUG=583616, 629609
Review-Url: https://codereview.chromium.org/2166683003
Cr-Commit-Position: refs/heads/master@{#407469}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 6364578..80be2c4d 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -53,6 +53,7 @@
#include "components/search/search_switches.h"
#include "components/security_state/switches.h"
#include "components/signin/core/common/signin_switches.h"
+#include "components/spellcheck/common/spellcheck_switches.h"
#include "components/ssl_config/ssl_config_switches.h"
#include "components/sync_driver/sync_driver_switches.h"
#include "components/tracing/common/tracing_switches.h"
@@ -830,7 +831,7 @@
#if defined(ENABLE_SPELLCHECK) && defined(OS_ANDROID)
{"enable-android-spellchecker", IDS_OPTIONS_ENABLE_SPELLCHECK,
IDS_OPTIONS_ENABLE_ANDROID_SPELLCHECKER_DESCRIPTION, kOsAndroid,
- SINGLE_VALUE_TYPE(switches::kEnableAndroidSpellChecker)},
+ SINGLE_VALUE_TYPE(spellcheck::switches::kEnableAndroidSpellChecker)},
#endif
{"enable-scroll-prediction", IDS_FLAGS_SCROLL_PREDICTION_NAME,
IDS_FLAGS_SCROLL_PREDICTION_DESCRIPTION, kOsDesktop,
@@ -1220,7 +1221,8 @@
{"enable-spelling-feedback-field-trial",
IDS_FLAGS_SPELLING_FEEDBACK_FIELD_TRIAL_NAME,
IDS_FLAGS_SPELLING_FEEDBACK_FIELD_TRIAL_DESCRIPTION, kOsAll,
- SINGLE_VALUE_TYPE(switches::kEnableSpellingFeedbackFieldTrial)},
+ SINGLE_VALUE_TYPE(
+ spellcheck::switches::kEnableSpellingFeedbackFieldTrial)},
#endif
{"enable-webgl-draft-extensions", IDS_FLAGS_WEBGL_DRAFT_EXTENSIONS_NAME,
IDS_FLAGS_WEBGL_DRAFT_EXTENSIONS_DESCRIPTION, kOsAll,