Chromium Code Reviews| Index: components/autofill/content/renderer/autofill_agent.cc |
| diff --git a/components/autofill/content/renderer/autofill_agent.cc b/components/autofill/content/renderer/autofill_agent.cc |
| index 25b02c309cab953cdde940894c24a7c2f59a738c..ca22dc9758752cf1b884d6cb9a77b3491f085d12 100644 |
| --- a/components/autofill/content/renderer/autofill_agent.cc |
| +++ b/components/autofill/content/renderer/autofill_agent.cc |
| @@ -14,6 +14,7 @@ |
| #include "components/autofill/content/renderer/form_autofill_util.h" |
| #include "components/autofill/content/renderer/page_click_tracker.h" |
| #include "components/autofill/content/renderer/password_autofill_agent.h" |
| +#include "components/autofill/content/renderer/password_form_conversion_utils.h" |
| #include "components/autofill/core/common/autofill_constants.h" |
| #include "components/autofill/core/common/autofill_messages.h" |
| #include "components/autofill/core/common/autofill_switches.h" |
| @@ -552,6 +553,9 @@ void AutofillAgent::QueryAutofillSuggestions(const WebInputElement& element, |
| WebFormControlElementToFormField(element, EXTRACT_VALUE, &field); |
| } |
| + scoped_ptr<PasswordForm> password_form = CreatePasswordForm(element.form()); |
| + DCHECK(password_form.get()); |
| + |
| gfx::RectF bounding_box_scaled = |
| GetScaledBoundingBox(web_view_->pageScaleFactor(), &element_); |
| @@ -570,6 +574,7 @@ void AutofillAgent::QueryAutofillSuggestions(const WebInputElement& element, |
| autofill_query_id_, |
| form, |
| field, |
| + password_form.get(), |
|
vabr (Chromium)
2014/01/13 14:46:29
You have to dereference the pointer here:
*passwor
riadh.chtara
2014/01/13 20:34:10
Done.
|
| bounding_box_scaled, |
| display_warning_if_disabled)); |
| } |