Chromium Code Reviews| Index: components/autofill/content/renderer/password_autofill_agent.cc |
| diff --git a/components/autofill/content/renderer/password_autofill_agent.cc b/components/autofill/content/renderer/password_autofill_agent.cc |
| index d59aeefe9761283cca12ef84d1080f9a578a23ac..ce74fe39d010728613061f586c34a9f7c94c85bf 100644 |
| --- a/components/autofill/content/renderer/password_autofill_agent.cc |
| +++ b/components/autofill/content/renderer/password_autofill_agent.cc |
| @@ -612,6 +612,10 @@ bool PasswordAutofillAgent::ShowSuggestionPopup( |
| FindFormAndFieldForInputElement( |
| user_input, &form, &field, REQUIRE_NONE); |
| + scoped_ptr<PasswordForm> password_form = |
| + CreatePasswordForm(user_input.form()); |
| + DCHECK(password_form.get()); |
|
vabr (Chromium)
2014/01/14 15:01:21
Also here, .get() is not necessary.
riadh.chtara
2014/01/17 08:25:08
Done.
|
| + |
| blink::WebInputElement selected_element = user_input; |
| gfx::Rect bounding_box(selected_element.boundsInViewportSpace()); |
| @@ -622,6 +626,7 @@ bool PasswordAutofillAgent::ShowSuggestionPopup( |
| bounding_box.height() * scale); |
| Send(new AutofillHostMsg_ShowPasswordSuggestions(routing_id(), |
| field, |
| + *password_form, |
| bounding_box_scaled, |
| suggestions, |
| realms)); |