| Index: chrome/renderer/spellchecker/spellcheck.cc
|
| ===================================================================
|
| --- chrome/renderer/spellchecker/spellcheck.cc (revision 103758)
|
| +++ chrome/renderer/spellchecker/spellcheck.cc (working copy)
|
| @@ -11,6 +11,7 @@
|
| #include "chrome/common/render_messages.h"
|
| #include "chrome/common/spellcheck_common.h"
|
| #include "chrome/common/spellcheck_messages.h"
|
| +#include "content/renderer/render_thread.h"
|
| #include "third_party/hunspell/src/hunspell/hunspell.hxx"
|
|
|
| using base::TimeTicks;
|
| @@ -221,7 +222,7 @@
|
| return false;
|
|
|
| if (!initialized_) {
|
| - Send(new SpellCheckHostMsg_RequestDictionary);
|
| + RenderThread::current()->Send(new SpellCheckHostMsg_RequestDictionary);
|
| initialized_ = true;
|
| return true;
|
| }
|
| @@ -239,8 +240,8 @@
|
| bool word_correct = false;
|
|
|
| if (is_using_platform_spelling_engine_) {
|
| - Send(new SpellCheckHostMsg_PlatformCheckSpelling(word_to_check, tag,
|
| - &word_correct));
|
| + RenderThread::current()->Send(new SpellCheckHostMsg_PlatformCheckSpelling(
|
| + word_to_check, tag, &word_correct));
|
| } else {
|
| std::string word_to_check_utf8(UTF16ToUTF8(word_to_check));
|
| // Hunspell shouldn't let us exceed its max, but check just in case
|
| @@ -264,8 +265,9 @@
|
| const string16& wrong_word,
|
| std::vector<string16>* optional_suggestions) {
|
| if (is_using_platform_spelling_engine_) {
|
| - Send(new SpellCheckHostMsg_PlatformFillSuggestionList(
|
| - wrong_word, optional_suggestions));
|
| + RenderThread::current()->Send(
|
| + new SpellCheckHostMsg_PlatformFillSuggestionList(
|
| + wrong_word, optional_suggestions));
|
| return;
|
| }
|
|
|
|
|