Index: chrome/browser/renderer_host/browser_render_process_host.cc |
=================================================================== |
--- chrome/browser/renderer_host/browser_render_process_host.cc (revision 30650) |
+++ chrome/browser/renderer_host/browser_render_process_host.cc (working copy) |
@@ -404,11 +404,11 @@ |
} |
void BrowserRenderProcessHost::AddWord(const string16& word) { |
- base::Thread* io_thread = g_browser_process->io_thread(); |
SpellChecker* spellchecker = profile()->GetSpellChecker(); |
if (spellchecker) { |
- io_thread->message_loop()->PostTask(FROM_HERE, NewRunnableMethod( |
- spellchecker, &SpellChecker::AddWord, word)); |
+ ChromeThread::PostTask( |
+ ChromeThread::IO, FROM_HERE, |
+ NewRunnableMethod(spellchecker, &SpellChecker::AddWord, word)); |
} |
} |