| Index: components/autofill/content/renderer/password_autofill_agent.h
|
| diff --git a/components/autofill/content/renderer/password_autofill_agent.h b/components/autofill/content/renderer/password_autofill_agent.h
|
| index a389ed2fae6e892fa67b794943690132c647bdaf..99f7b8f940d631a334612eba8a205af45d882372 100644
|
| --- a/components/autofill/content/renderer/password_autofill_agent.h
|
| +++ b/components/autofill/content/renderer/password_autofill_agent.h
|
| @@ -107,6 +107,15 @@ class PasswordAutofillAgent : public content::RenderViewObserver {
|
| bool ShowSuggestionPopup(const PasswordFormFillData& fill_data,
|
| const WebKit::WebInputElement& user_input);
|
|
|
| + // Attempts to fill |username_element| and |password_element| with the
|
| + // |fill_data|. Will use the data corresponding to the preferred username,
|
| + // unless the |username_element| already has a value set. In that case,
|
| + // attempts to fill the password matching the already filled username, if
|
| + // such a password exists.
|
| + void FillFormOnPasswordRecieved(const PasswordFormFillData& fill_data,
|
| + WebKit::WebInputElement username_element,
|
| + WebKit::WebInputElement password_element);
|
| +
|
| bool FillUserNameAndPassword(
|
| WebKit::WebInputElement* username_element,
|
| WebKit::WebInputElement* password_element,
|
|
|