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

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

Issue 15934002: Add IN_DICTIONARY feedback type for spelling service (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 7 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_action.cc
diff --git a/chrome/browser/spellchecker/spellcheck_action.cc b/chrome/browser/spellchecker/spellcheck_action.cc
index dfba4411c33e738b30aede685c1b5031489ab4f2..3373595719e37d024255c842742915104630d218 100644
--- a/chrome/browser/spellchecker/spellcheck_action.cc
+++ b/chrome/browser/spellchecker/spellcheck_action.cc
@@ -19,6 +19,7 @@ SpellcheckAction::~SpellcheckAction() {}
bool SpellcheckAction::IsFinal() const {
return type == TYPE_ADD_TO_DICT ||
type == TYPE_IGNORE ||
+ type == TYPE_IN_DICTIONARY ||
type == TYPE_MANUALLY_CORRECTED ||
type == TYPE_NO_ACTION ||
type == TYPE_SELECT;
@@ -51,6 +52,9 @@ base::DictionaryValue* SpellcheckAction::Serialize() const {
case TYPE_IGNORE:
result->SetString("actionType", "IGNORE");
break;
+ case TYPE_IN_DICTIONARY:
+ result->SetString("actionType", "IN_DICTIONARY");
+ break;
case TYPE_NO_ACTION:
result->SetString("actionType", "NO_ACTION");
break;
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_action.h ('k') | chrome/browser/spellchecker/spellcheck_action_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698