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

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

Issue 2055633003: [Password Generation] Sends form classifier vote to autofill server (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pg_form_classification
Patch Set: replaced " DCHECK(client_->IsSavingAndFillingEnabledForCurrentPage()) 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/password_generation_agent.h
diff --git a/components/autofill/content/renderer/password_generation_agent.h b/components/autofill/content/renderer/password_generation_agent.h
index d5ae1ee505a5513a88c2e3456dfd88bdd0cc1519..9e1bda376e4c9ea8dd7145941aad8a69464dbfd2 100644
--- a/components/autofill/content/renderer/password_generation_agent.h
+++ b/components/autofill/content/renderer/password_generation_agent.h
@@ -107,6 +107,10 @@ class PasswordGenerationAgent : public content::RenderFrameObserver {
// generation popup at this field.
void OnUserTriggeredGeneratePassword();
+ // Runs HTML parsing based classifier and saves its outcome to proto.
+ void RunFormClassifierAndSaveVote(const blink::WebFormElement& web_form,
+ const PasswordForm& form);
+
// Creates a password form to presave a generated password. It copies behavior
// of CreatePasswordFormFromWebForm/FromUnownedInputElements, but takes
// |password_value| from |generation_element_| and empties |username_value|.

Powered by Google App Engine
This is Rietveld 408576698