Index: components/autofill/content/renderer/autofill_agent.cc |
diff --git a/components/autofill/content/renderer/autofill_agent.cc b/components/autofill/content/renderer/autofill_agent.cc |
index 65e411aadae9c959f50a558e83ac1eb9c75c4ea3..28340cbe5e7effe71c25660736ba977dd2ee70ff 100644 |
--- a/components/autofill/content/renderer/autofill_agent.cc |
+++ b/components/autofill/content/renderer/autofill_agent.cc |
@@ -573,6 +573,15 @@ void AutofillAgent::ShowInitialPasswordAccountSuggestions( |
ShowSuggestions(element, options); |
} |
+void AutofillAgent::ShowNotSecureWarning( |
+ const blink::WebInputElement& element) { |
+ if (is_generation_popup_possibly_visible_) |
+ return; |
+ HidePopup(); |
+ password_autofill_agent_->ShowNotSecureWarning(element); |
+ is_popup_possibly_visible_ = true; |
+} |
+ |
void AutofillAgent::OnSamePageNavigationCompleted() { |
if (last_interacted_form_.isNull()) { |
// If no last interacted form is available (i.e., there is no form tag), |