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

Unified Diff: chrome/renderer/spellchecker/spellcheck.cc

Issue 8116009: Move RenderProcessObserver and RenderViewVisitor to content\public\renderer and put them in the c... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck.h ('k') | chrome/renderer/visitedlink_slave.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck.h ('k') | chrome/renderer/visitedlink_slave.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698