summaryrefslogtreecommitdiffstats
path: root/chrome/browser/render_process_host.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/render_process_host.cc')
-rw-r--r--chrome/browser/render_process_host.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/render_process_host.cc b/chrome/browser/render_process_host.cc
index 22ab752..bfe05a2 100644
--- a/chrome/browser/render_process_host.cc
+++ b/chrome/browser/render_process_host.cc
@@ -780,8 +780,10 @@ 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));
+ if (profile_->GetSpellChecker()) {
+ io_thread->message_loop()->PostTask(FROM_HERE, NewRunnableMethod(
+ profile_->GetSpellChecker(), &SpellChecker::AddWord, word));
+ }
}
// NotificationObserver implementation.