summaryrefslogtreecommitdiffstats
path: root/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc
diff options
context:
space:
mode:
authorrouslan@chromium.org <rouslan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-25 03:32:10 +0000
committerrouslan@chromium.org <rouslan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-25 03:32:10 +0000
commite0c45d7f8ab8e057702a31239266367b467e5913 (patch)
tree5ef7579ac1a983552f219f692138721b41f75fbe /chrome/browser/spellchecker/spellcheck_custom_dictionary.cc
parent86f1a7369e976faba6581eaca7d8a38d7c0aa6c6 (diff)
downloadchromium_src-e0c45d7f8ab8e057702a31239266367b467e5913.zip
chromium_src-e0c45d7f8ab8e057702a31239266367b467e5913.tar.gz
chromium_src-e0c45d7f8ab8e057702a31239266367b467e5913.tar.bz2
Send IN_DICTIONARY feedback when user has misspelling in custom dictionary
When a user types a word that is misspelled and is in the custom dictionary, then the spelling service client will generate a spellcheck result for the misspelling anyway. The feedback sender sends an IN_DICTIONARY message to the spelling service to indicate that the user cannot see this spellcheck result and, therefore, cannot provide any other feedback on the spellcheck suggestion quality. BUG=170514 Review URL: https://chromiumcodereview.appspot.com/15897005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208380 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/spellchecker/spellcheck_custom_dictionary.cc')
-rw-r--r--chrome/browser/spellchecker/spellcheck_custom_dictionary.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc b/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc
index 0cd0c7c..c3d2484 100644
--- a/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc
+++ b/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc
@@ -261,7 +261,7 @@ bool SpellcheckCustomDictionary::RemoveWord(const std::string& word) {
return result == VALID_CHANGE;
}
-bool SpellcheckCustomDictionary::HasWord(const std::string& word) {
+bool SpellcheckCustomDictionary::HasWord(const std::string& word) const {
return !!words_.count(word);
}