diff options
Diffstat (limited to 'chrome/browser/render_process_host.cc')
-rw-r--r-- | chrome/browser/render_process_host.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/render_process_host.cc b/chrome/browser/render_process_host.cc index f101fa8..90ff2aa 100644 --- a/chrome/browser/render_process_host.cc +++ b/chrome/browser/render_process_host.cc @@ -35,6 +35,7 @@ #include "chrome/browser/renderer_security_policy.h" #include "chrome/browser/resource_message_filter.h" #include "chrome/browser/sandbox_policy.h" +#include "chrome/browser/spellchecker.h" #include "chrome/browser/visitedlink_master.h" #include "chrome/browser/web_contents.h" #include "chrome/common/chrome_constants.h" @@ -722,6 +723,12 @@ void RenderProcessHost::WidgetHidden() { } } +void RenderProcessHost::AddWord(const std::wstring& word) { + base::Thread* io_thread = g_browser_process->io_thread(); + io_thread->message_loop()->PostTask(FROM_HERE, NewRunnableMethod( + profile_->GetSpellChecker(), &SpellChecker::AddWord, word)); +} + // NotificationObserver implementation. void RenderProcessHost::Observe(NotificationType type, const NotificationSource& source, |