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

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

Issue 2065303002: Modifying Autofill Agent to use synthetic form (i.e., formless elements) when no form is present on… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding browser test Created 4 years, 6 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.h
diff --git a/components/autofill/content/renderer/autofill_agent.h b/components/autofill/content/renderer/autofill_agent.h
index 0de9b5cb8138344a034f76c4e3a07040940ba77f..0e9043c4c58b1de9ad6be8d068b219c90d6523db 100644
--- a/components/autofill/content/renderer/autofill_agent.h
+++ b/components/autofill/content/renderer/autofill_agent.h
@@ -270,6 +270,10 @@ class AutofillAgent : public content::RenderFrameObserver,
// Last form which was interacted with by the user.
blink::WebFormElement last_interacted_form_;
+ // When dealing with forms that don't use a <form> tag, we keep track of the
+ // elements the user has modified so we can determine when submission occurs.
+ std::set<blink::WebFormControlElement> formless_elements_user_edited_;
+
// Was the query node autofilled prior to previewing the form?
bool was_query_node_autofilled_;

Powered by Google App Engine
This is Rietveld 408576698