| Index: components/autofill/content/browser/autofill_driver_impl.cc
|
| diff --git a/components/autofill/content/browser/autofill_driver_impl.cc b/components/autofill/content/browser/autofill_driver_impl.cc
|
| index b6d7cbc70d2a0036b8a16ee5bf19d76f58c94042..81eca14620c15068b1277df446050e2fbc696ca6 100644
|
| --- a/components/autofill/content/browser/autofill_driver_impl.cc
|
| +++ b/components/autofill/content/browser/autofill_driver_impl.cc
|
| @@ -120,9 +120,9 @@ void AutofillDriverImpl::SendAutofillTypePredictionsToRenderer(
|
| switches::kShowAutofillTypePredictions))
|
| return;
|
|
|
| - content::RenderViewHost* host = web_contents()->GetRenderViewHost();
|
| - if (!host)
|
| + if (!RendererIsAvailable())
|
| return;
|
| + content::RenderViewHost* host = web_contents()->GetRenderViewHost();
|
|
|
| std::vector<FormDataPredictions> type_predictions;
|
| FormStructure::GetFieldTypePredictions(forms, &type_predictions);
|
|
|