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

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

Issue 1817483002: [Password Manager] Presave the form with generated password till successful login (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed CPMD_BAD_ORIGIN_UPDATE_PRESAVED_PASSWORD in bad_message.h Created 4 years, 8 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 82cdf5ee8a944d121ae1f84fc32f35627e631b32..1b3d36d5325142f992633331e96fc6f0110dadac 100644
--- a/components/autofill/content/renderer/password_generation_agent.h
+++ b/components/autofill/content/renderer/password_generation_agent.h
@@ -107,6 +107,12 @@ class PasswordGenerationAgent : public content::RenderFrameObserver {
// generation popup at this field.
void OnUserTriggeredGeneratePassword();
+ // 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|.
+ // If a form creating is failed, returns an empty unique_ptr.
+ std::unique_ptr<PasswordForm> CreatePasswordFormToPresave();
+
// Stores forms that are candidates for account creation.
AccountCreationFormDataList possible_account_creation_forms_;

Powered by Google App Engine
This is Rietveld 408576698