summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/spellchecker/spellcheck.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-06 20:34:06 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-06 20:34:06 +0000
commit52647690519017787e65b22941cbd7dd57b42b5f (patch)
treee32377afde4ad1e590123b26fb695cf6f610e6b5 /chrome/renderer/spellchecker/spellcheck.cc
parent37d75b246580a34cdcba5430a4df05c1243fd51b (diff)
downloadchromium_src-52647690519017787e65b22941cbd7dd57b42b5f.zip
chromium_src-52647690519017787e65b22941cbd7dd57b42b5f.tar.gz
chromium_src-52647690519017787e65b22941cbd7dd57b42b5f.tar.bz2
Create content::RenderThread interface and make code in chrome use that.
BUG=98716,98375,10837 Review URL: http://codereview.chromium.org/8165013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104358 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/spellchecker/spellcheck.cc')
-rw-r--r--chrome/renderer/spellchecker/spellcheck.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/renderer/spellchecker/spellcheck.cc b/chrome/renderer/spellchecker/spellcheck.cc
index d16ac0c..fb87366 100644
--- a/chrome/renderer/spellchecker/spellcheck.cc
+++ b/chrome/renderer/spellchecker/spellcheck.cc
@@ -11,10 +11,11 @@
#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 "content/public/renderer/render_thread.h"
#include "third_party/hunspell/src/hunspell/hunspell.hxx"
using base::TimeTicks;
+using content::RenderThread;
SpellCheck::SpellCheck()
: file_(base::kInvalidPlatformFileValue),
@@ -222,7 +223,7 @@ bool SpellCheck::InitializeIfNeeded() {
return false;
if (!initialized_) {
- RenderThread::current()->Send(new SpellCheckHostMsg_RequestDictionary);
+ RenderThread::Get()->Send(new SpellCheckHostMsg_RequestDictionary);
initialized_ = true;
return true;
}
@@ -240,7 +241,7 @@ bool SpellCheck::CheckSpelling(const string16& word_to_check, int tag) {
bool word_correct = false;
if (is_using_platform_spelling_engine_) {
- RenderThread::current()->Send(new SpellCheckHostMsg_PlatformCheckSpelling(
+ RenderThread::Get()->Send(new SpellCheckHostMsg_PlatformCheckSpelling(
word_to_check, tag, &word_correct));
} else {
std::string word_to_check_utf8(UTF16ToUTF8(word_to_check));
@@ -265,9 +266,8 @@ void SpellCheck::FillSuggestionList(
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));
+ RenderThread::Get()->Send(new SpellCheckHostMsg_PlatformFillSuggestionList(
+ wrong_word, optional_suggestions));
return;
}