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..44493fab5c649367e2db6d6ee49994f8d8965a4d 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()); |
|
vabr (Chromium)
2014/01/14 15:01:21
Even here you should be able to spare the .get() p
riadh.chtara
2014/01/17 08:25:08
Done.
|
| + |
| 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, |
| bounding_box_scaled, |
| display_warning_if_disabled)); |
| } |