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

Unified Diff: components/password_manager/core/browser/password_generation_manager.cc

Issue 2318533002: [Password Generation] Use signatures for form matching (Closed)
Patch Set: Sent to review Created 4 years, 3 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/password_manager/core/browser/password_generation_manager.cc
diff --git a/components/password_manager/core/browser/password_generation_manager.cc b/components/password_manager/core/browser/password_generation_manager.cc
index d1b364127922e52a75cb1f0169154becc7a1fdaa..7e2b733d54a7f61e794ba3ffabecdf52e26b920b 100644
--- a/components/password_manager/core/browser/password_generation_manager.cc
+++ b/components/password_manager/core/browser/password_generation_manager.cc
@@ -41,8 +41,8 @@ void PasswordGenerationManager::DetectFormsEligibleForGeneration(
if (field->server_type() == autofill::ACCOUNT_CREATION_PASSWORD ||
field->server_type() == autofill::NEW_PASSWORD) {
forms_eligible_for_generation.push_back(
- autofill::PasswordFormGenerationData{form->form_name(),
- form->target_url(), *field});
+ autofill::PasswordFormGenerationData{form->form_signature(),
+ field->FieldSignature()});
break;
}
}

Powered by Google App Engine
This is Rietveld 408576698