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

Unified Diff: components/spellcheck/renderer/spellcheck.cc

Issue 2284583002: [Android] Add AndroidSpellChecker feature to allow for gradual rollout using finch. (Closed)
Patch Set: fix compile Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/spellcheck/common/spellcheck_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/spellcheck/renderer/spellcheck.cc
diff --git a/components/spellcheck/renderer/spellcheck.cc b/components/spellcheck/renderer/spellcheck.cc
index 1ecfaa203cb06dd8b247a3b30bdc7be0db9868c4..4757dc65233ad55ae2a00df49dcd3370efbec9f5 100644
--- a/components/spellcheck/renderer/spellcheck.cc
+++ b/components/spellcheck/renderer/spellcheck.cc
@@ -19,6 +19,7 @@
#include "base/threading/thread_task_runner_handle.h"
#include "build/build_config.h"
#include "components/spellcheck/common/spellcheck_common.h"
+#include "components/spellcheck/common/spellcheck_features.h"
#include "components/spellcheck/common/spellcheck_messages.h"
#include "components/spellcheck/common/spellcheck_result.h"
#include "components/spellcheck/common/spellcheck_switches.h"
@@ -537,10 +538,7 @@ void SpellCheck::CreateTextCheckingResults(
bool SpellCheck::IsSpellcheckEnabled() {
#if defined(OS_ANDROID)
- if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
- spellcheck::switches::kEnableAndroidSpellChecker)) {
- return false;
- }
+ if (!spellcheck::IsAndroidSpellCheckFeatureEnabled()) return false;
#endif
return spellcheck_enabled_;
}
« no previous file with comments | « components/spellcheck/common/spellcheck_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698