| Index: components/autofill/content/browser/content_autofill_driver.cc
|
| diff --git a/components/autofill/content/browser/content_autofill_driver.cc b/components/autofill/content/browser/content_autofill_driver.cc
|
| index d21db43e98773e84e2dfa4885d6c26fa2dae1d1d..0bcd98b4adf4c4422781bef64497985484d0ec11 100644
|
| --- a/components/autofill/content/browser/content_autofill_driver.cc
|
| +++ b/components/autofill/content/browser/content_autofill_driver.cc
|
| @@ -146,10 +146,10 @@ void ContentAutofillDriver::RendererShouldPreviewFieldWithValue(
|
| }
|
|
|
| void ContentAutofillDriver::PopupHidden() {
|
| - if (!RendererIsAvailable())
|
| - return;
|
| - render_frame_host_->Send(
|
| - new AutofillMsg_PopupHidden(render_frame_host_->GetRoutingID()));
|
| + // If the unmask prompt is showing, keep showing the preview. The preview
|
| + // will be cleared when the prompt closes.
|
| + if (!autofill_manager_->IsShowingUnmaskPrompt())
|
| + RendererShouldClearPreviewedForm();
|
| }
|
|
|
| bool ContentAutofillDriver::HandleMessage(const IPC::Message& message) {
|
|
|