| Index: components/autofill/core/browser/autofill_metrics_unittest.cc
|
| diff --git a/components/autofill/core/browser/autofill_metrics_unittest.cc b/components/autofill/core/browser/autofill_metrics_unittest.cc
|
| index 8eb952bd1206ca7d6d146bdc30bb7f6d6199e150..5aad84df9eefa89401fc1f277e17e68b6d77d0ea 100644
|
| --- a/components/autofill/core/browser/autofill_metrics_unittest.cc
|
| +++ b/components/autofill/core/browser/autofill_metrics_unittest.cc
|
| @@ -30,6 +30,7 @@
|
| #include "content/public/test/test_utils.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| +#include "third_party/WebKit/public/web/WebFormElement.h"
|
| #include "ui/gfx/rect.h"
|
| #include "url/gurl.h"
|
|
|
| @@ -1055,15 +1056,16 @@ TEST_F(AutofillMetricsTest, AddressSuggestionsCount) {
|
| EXPECT_CALL(*autofill_manager_->metric_logger(),
|
| LogAddressSuggestionsCount(2)).Times(1);
|
|
|
| + blink::WebFormElement webformelement;
|
| // Simulate activating the autofill popup for the phone field.
|
| autofill_manager_->OnQueryFormFieldAutofill(
|
| - 0, form, field, gfx::Rect(), false);
|
| + 0, form, field, webformelement, gfx::Rect(), false);
|
|
|
| // Simulate activating the autofill popup for the email field after typing.
|
| // No new metric should be logged, since we're still on the same page.
|
| test::CreateTestFormField("Email", "email", "b", "email", &field);
|
| autofill_manager_->OnQueryFormFieldAutofill(
|
| - 0, form, field, gfx::Rect(), false);
|
| + 0, form, field, webformelement, gfx::Rect(), false);
|
|
|
| // Reset the autofill manager state.
|
| autofill_manager_->Reset();
|
| @@ -1076,7 +1078,7 @@ TEST_F(AutofillMetricsTest, AddressSuggestionsCount) {
|
|
|
| // Simulate activating the autofill popup for the email field after typing.
|
| autofill_manager_->OnQueryFormFieldAutofill(
|
| - 0, form, field, gfx::Rect(), false);
|
| + 0, form, field, webformelement, gfx::Rect(), false);
|
|
|
| // Reset the autofill manager state again.
|
| autofill_manager_->Reset();
|
| @@ -1090,7 +1092,7 @@ TEST_F(AutofillMetricsTest, AddressSuggestionsCount) {
|
| // Simulate activating the autofill popup for the email field after typing.
|
| form.fields[0].is_autofilled = true;
|
| autofill_manager_->OnQueryFormFieldAutofill(
|
| - 0, form, field, gfx::Rect(), false);
|
| + 0, form, webformelement, field, webformelement, gfx::Rect(), false);
|
| }
|
|
|
| // Test that we log whether Autofill is enabled when filling a form.
|
|
|