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

Unified Diff: components/password_manager/core/browser/password_manager.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/password_manager/core/browser/password_manager.h
diff --git a/components/password_manager/core/browser/password_manager.h b/components/password_manager/core/browser/password_manager.h
index 99d8be8ea6d2198356668eaed05fdd9b1d794fc7..1adc983683bdcf6266dc563cd712b7e0223d2348 100644
--- a/components/password_manager/core/browser/password_manager.h
+++ b/components/password_manager/core/browser/password_manager.h
@@ -84,7 +84,11 @@ class PasswordManager : public LoginModel {
void GenerationAvailableForForm(const autofill::PasswordForm& form);
+ // Presaves the form with generated password.
+ void OnPresaveGeneratedPassword(const autofill::PasswordForm& password_form);
+
// Update the state of generation for this form.
+ // If |password_is_generated| == false, removes the presaved form.
void SetHasGeneratedPasswordForForm(
password_manager::PasswordManagerDriver* driver,
const autofill::PasswordForm& form,

Powered by Google App Engine
This is Rietveld 408576698