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

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

Issue 2893903002: [Password Generation] Set TYPE_GENERATED to presaved credentials (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « chrome/renderer/autofill/fake_content_password_manager_driver.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/content/renderer/password_generation_agent.cc
diff --git a/components/autofill/content/renderer/password_generation_agent.cc b/components/autofill/content/renderer/password_generation_agent.cc
index b0c7e09d14de8cb49f5499c8b1d2f10aed4a0914..bf50f220493544252111f122723c9c80668fe832 100644
--- a/components/autofill/content/renderer/password_generation_agent.cc
+++ b/components/autofill/content/renderer/password_generation_agent.cc
@@ -354,6 +354,7 @@ PasswordGenerationAgent::CreatePasswordFormToPresave() {
*render_frame()->GetWebFrame(), nullptr, nullptr);
}
if (password_form) {
+ password_form->type = PasswordForm::TYPE_GENERATED;
// TODO(kolos): when we are good in username detection, save username
// as well.
password_form->username_value = base::string16();
« no previous file with comments | « chrome/renderer/autofill/fake_content_password_manager_driver.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698