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

Unified Diff: components/spellcheck/browser/spellcheck_platform_android.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 | « chrome/browser/chrome_content_browser_client.cc ('k') | components/spellcheck/common/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/spellcheck/browser/spellcheck_platform_android.cc
diff --git a/components/spellcheck/browser/spellcheck_platform_android.cc b/components/spellcheck/browser/spellcheck_platform_android.cc
index 3d746118f94d6a769bf8ee19b6267c61b0bc6ab2..3cca6be1772c9373106fc9e0eae3aeffbffa4f19 100644
--- a/components/spellcheck/browser/spellcheck_platform_android.cc
+++ b/components/spellcheck/browser/spellcheck_platform_android.cc
@@ -6,7 +6,7 @@
#include "base/callback.h"
#include "base/command_line.h"
-#include "components/spellcheck/common/spellcheck_switches.h"
+#include "components/spellcheck/common/spellcheck_features.h"
namespace spellcheck_platform {
@@ -18,8 +18,7 @@ std::string GetSpellCheckerLanguage() {
}
bool SpellCheckerAvailable() {
- return base::CommandLine::ForCurrentProcess()->HasSwitch(
- spellcheck::switches::kEnableAndroidSpellChecker);
+ return spellcheck::IsAndroidSpellCheckFeatureEnabled();
}
bool SpellCheckerProvidesPanel() {
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | components/spellcheck/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698