Commit 4ac559e4 authored by rouslan@chromium.org's avatar rouslan@chromium.org

Check for NULL spellcheck service when periodically receiving a list of markers

This CL alters SpellcheckMessageFilter to check for NULL spellcheck service when
it periodically receives a list of document markers from the renderer.

BUG=244521

Review URL: https://chromiumcodereview.appspot.com/16075005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203054 0039d316-1c4b-4281-b951-d872f2087c98
parent 555d93eb
...@@ -101,9 +101,12 @@ void SpellCheckMessageFilter::OnRespondDocumentMarkers( ...@@ -101,9 +101,12 @@ void SpellCheckMessageFilter::OnRespondDocumentMarkers(
const std::vector<uint32>& markers) { const std::vector<uint32>& markers) {
SpellcheckService* spellcheck = SpellcheckService* spellcheck =
SpellcheckServiceFactory::GetForRenderProcessId(render_process_id_); SpellcheckServiceFactory::GetForRenderProcessId(render_process_id_);
DCHECK(spellcheck); // Spellcheck service may not be available for a renderer process that is
spellcheck->GetFeedbackSender()->OnReceiveDocumentMarkers(render_process_id_, // shutting down.
markers); if (!spellcheck)
return;
spellcheck->GetFeedbackSender()->OnReceiveDocumentMarkers(
render_process_id_, markers);
} }
#if !defined(OS_MACOSX) #if !defined(OS_MACOSX)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment