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

Unified Diff: chrome/renderer/spellchecker/spellcheck.cc

Issue 1508713002: Disable spellchecker on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/spellchecker/spellcheck.cc
diff --git a/chrome/renderer/spellchecker/spellcheck.cc b/chrome/renderer/spellchecker/spellcheck.cc
index a1c3e4c81b27a95a995b979e2cb59dd3c642798c..a10e17c7a5f2a21b34679c7cdb3bd23d06d7282a 100644
--- a/chrome/renderer/spellchecker/spellcheck.cc
+++ b/chrome/renderer/spellchecker/spellcheck.cc
@@ -12,7 +12,6 @@
#include "base/location.h"
#include "base/logging.h"
#include "base/single_thread_task_runner.h"
-#include "base/sys_info.h"
#include "base/thread_task_runner_handle.h"
#include "chrome/common/channel_info.h"
#include "chrome/common/chrome_switches.h"
@@ -21,7 +20,6 @@
#include "chrome/common/spellcheck_result.h"
#include "chrome/renderer/spellchecker/spellcheck_language.h"
#include "chrome/renderer/spellchecker/spellcheck_provider.h"
-#include "components/version_info/version_info.h"
#include "content/public/renderer/render_thread.h"
#include "content/public/renderer/render_view.h"
#include "content/public/renderer/render_view_visitor.h"
@@ -537,14 +535,7 @@ void SpellCheck::CreateTextCheckingResults(
bool SpellCheck::IsSpellcheckEnabled() {
#if defined(OS_ANDROID)
- if (base::SysInfo::IsLowEndDevice())
- return false;
-
- version_info::Channel channel = chrome::GetChannel();
- if (channel == version_info::Channel::DEV ||
- channel == version_info::Channel::CANARY) {
- return true;
- } else if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableAndroidSpellChecker)) {
return false;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698