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

Unified Diff: components/autofill/content/renderer/autofill_agent.cc

Issue 2604453003: Show Form-Not-Secure warning on page load (Closed)
Patch Set: meacer, jochen comments Created 3 years, 12 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
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),
« no previous file with comments | « components/autofill/content/renderer/autofill_agent.h ('k') | components/autofill/content/renderer/password_autofill_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698