diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/safe_browsing/client_side_detection_service.cc | 4 | ||||
-rw-r--r-- | chrome/browser/spellcheck_host_impl.cc | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/safe_browsing/client_side_detection_service.cc b/chrome/browser/safe_browsing/client_side_detection_service.cc index 8bcf7df..2521eb4 100644 --- a/chrome/browser/safe_browsing/client_side_detection_service.cc +++ b/chrome/browser/safe_browsing/client_side_detection_service.cc @@ -183,7 +183,9 @@ void ClientSideDetectionService::SetModelStatus(ModelStatus status) { for (RenderProcessHost::iterator i(RenderProcessHost::AllHostsIterator()); !i.IsAtEnd(); i.Advance()) { - SendModelToProcess(i.GetCurrentValue()); + RenderProcessHost* process = i.GetCurrentValue(); + if (process->GetHandle()) + SendModelToProcess(process); } } diff --git a/chrome/browser/spellcheck_host_impl.cc b/chrome/browser/spellcheck_host_impl.cc index 92386bc..fb81413 100644 --- a/chrome/browser/spellcheck_host_impl.cc +++ b/chrome/browser/spellcheck_host_impl.cc @@ -252,7 +252,9 @@ void SpellCheckHostImpl::InformObserverOfInitialization() { for (RenderProcessHost::iterator i(RenderProcessHost::AllHostsIterator()); !i.IsAtEnd(); i.Advance()) { - InitForRenderer(i.GetCurrentValue()); + RenderProcessHost* process = i.GetCurrentValue(); + if (process) + InitForRenderer(process); } } |