diff options
-rw-r--r-- | DEPS | 4 | ||||
-rw-r--r-- | chrome/browser/spellcheck_unittest.cc | 6 | ||||
-rw-r--r-- | chrome/browser/spellchecker.cc | 4 |
3 files changed, 7 insertions, 7 deletions
@@ -28,8 +28,8 @@ deps = { "/trunk/deps/third_party/icu38@24923", "src/third_party/hunspell": - "/trunk/deps/third_party/hunspell@23803", - + "/trunk/deps/third_party/hunspell128@24986", + "src/third_party/protobuf2/src": "http://protobuf.googlecode.com/svn/trunk@219", diff --git a/chrome/browser/spellcheck_unittest.cc b/chrome/browser/spellcheck_unittest.cc index 8231e0d..8d97e9e 100644 --- a/chrome/browser/spellcheck_unittest.cc +++ b/chrome/browser/spellcheck_unittest.cc @@ -606,11 +606,11 @@ TEST_F(SpellCheckTest, SpellCheckSuggestions_EN_US) { {L"wate", false, 0, 0, L"water"}, {L"wate", false, 0, 0, L"waste"}, {L"wate", false, 0, 0, L"sate"}, - {L"wate", false, 0, 0, L"rate"}, + {L"wate", false, 0, 0, L"ate"}, {L"jum", false, 0, 0, L"jump"}, - {L"jum", false, 0, 0, L"rum"}, + {L"jum", false, 0, 0, L"hum"}, {L"jum", false, 0, 0, L"sum"}, - {L"jum", false, 0, 0, L"tum"}, + {L"jum", false, 0, 0, L"um"}, #endif //!OS_MACOSX // TODO (Sidchat): add many more examples. }; diff --git a/chrome/browser/spellchecker.cc b/chrome/browser/spellchecker.cc index b8bcc7f..b6e43fb 100644 --- a/chrome/browser/spellchecker.cc +++ b/chrome/browser/spellchecker.cc @@ -595,7 +595,7 @@ void SpellChecker::AddCustomWordsToHunspell() { if (hunspell_.get()) { for (std::vector<std::string>::iterator it = list_of_words.begin(); it != list_of_words.end(); ++it) { - hunspell_->put_word(it->c_str()); + hunspell_->add(it->c_str()); } } } @@ -728,7 +728,7 @@ void SpellChecker::AddWord(const std::wstring& word) { // Add the word to hunspell. std::string word_to_add = WideToUTF8(word); if (!word_to_add.empty()) - hunspell_->put_word(word_to_add.c_str()); + hunspell_->add(word_to_add.c_str()); // Now add the word to the custom dictionary file. Task* write_word_task = |