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

Unified Diff: chrome/browser/spellchecker/spellcheck_platform_android.cc

Issue 1275813002: Implemented typo recognition in Chrome for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@4_remove_mac_redundancies
Patch Set: Created 5 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
Index: chrome/browser/spellchecker/spellcheck_platform_android.cc
diff --git a/chrome/browser/spellchecker/spellcheck_platform_android.cc b/chrome/browser/spellchecker/spellcheck_platform_android.cc
index a0c338f66d0d6960372ae83adc6df73a78de22ab..a73c7bcb6b3bbe2d6401097bde648c184101a397 100644
--- a/chrome/browser/spellchecker/spellcheck_platform_android.cc
+++ b/chrome/browser/spellchecker/spellcheck_platform_android.cc
@@ -5,8 +5,6 @@
#include "chrome/browser/spellchecker/spellcheck_platform.h"
#include "base/callback.h"
-#include "base/command_line.h"
-#include "chrome/common/chrome_switches.h"
namespace spellcheck_platform {
@@ -14,8 +12,7 @@ void GetAvailableLanguages(std::vector<std::string>* spellcheck_languages) {
}
bool SpellCheckerAvailable() {
- return base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableAndroidSpellChecker);
+ return true;
groby-ooo-7-16 2015/08/06 22:10:08 Wrong base patchset?
dylanking 2015/08/07 03:33:54 We've decided to move a lot of the functionality t
}
bool SpellCheckerProvidesPanel() {
@@ -40,7 +37,7 @@ void SetLanguage(const std::string& lang_to_set) {
}
bool CheckSpelling(const base::string16& word_to_check, int tag) {
- return true;
+ return true;
}
void FillSuggestionList(const base::string16& wrong_word,
@@ -66,7 +63,6 @@ void CloseDocumentWithTag(int tag) {
void RequestTextCheck(int document_tag,
const base::string16& text,
TextCheckCompleteCallback callback) {
-
}
} // namespace spellcheck_platform

Powered by Google App Engine
This is Rietveld 408576698