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

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

Issue 6873014: Clear RenderThread of any Chrome specific code, and move a bunch of stuff out of RenderView. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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/renderer_main_unittest.cc ('k') | chrome/renderer/spellchecker/spellcheck_provider.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 81801)
+++ chrome/renderer/spellchecker/spellcheck.cc (working copy)
@@ -11,7 +11,6 @@
#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;
@@ -226,7 +225,7 @@
return false;
if (!initialized_) {
- RenderThread::current()->Send(new SpellCheckHostMsg_RequestDictionary);
+ Send(new SpellCheckHostMsg_RequestDictionary);
initialized_ = true;
return true;
}
@@ -244,8 +243,7 @@
bool word_correct = false;
if (is_using_platform_spelling_engine_) {
- RenderThread::current()->Send(
- new SpellCheckHostMsg_PlatformCheckSpelling(word_to_check, tag,
+ Send(new SpellCheckHostMsg_PlatformCheckSpelling(word_to_check, tag,
&word_correct));
} else {
std::string word_to_check_utf8(UTF16ToUTF8(word_to_check));
@@ -270,9 +268,8 @@
const string16& wrong_word,
std::vector<string16>* optional_suggestions) {
if (is_using_platform_spelling_engine_) {
- RenderThread::current()->Send(
- new SpellCheckHostMsg_PlatformFillSuggestionList(
- wrong_word, optional_suggestions));
+ Send(new SpellCheckHostMsg_PlatformFillSuggestionList(
+ wrong_word, optional_suggestions));
return;
}
« no previous file with comments | « chrome/renderer/renderer_main_unittest.cc ('k') | chrome/renderer/spellchecker/spellcheck_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698