Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Unified Diff: components/autofill/content/browser/content_autofill_driver.cc

Issue 872713005: autofill - Keep showing form preview while card unmasking prompt is up. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/autofill/content/common/autofill_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | components/autofill/content/common/autofill_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698