Index: chrome/browser/ui/views/payments/error_message_view_controller_browsertest.cc |
diff --git a/chrome/browser/ui/views/payments/error_message_view_controller_browsertest.cc b/chrome/browser/ui/views/payments/error_message_view_controller_browsertest.cc |
index cc11c0e7a1a775274f4a071c2be8b3af41962d8c..539cf9679db5a08e0322263cceb88e94af3a0178 100644 |
--- a/chrome/browser/ui/views/payments/error_message_view_controller_browsertest.cc |
+++ b/chrome/browser/ui/views/payments/error_message_view_controller_browsertest.cc |
@@ -27,7 +27,11 @@ class PaymentRequestErrorMessageTest : public PaymentRequestBrowserTestBase { |
// Testing the use of the complete('fail') JS API and the error message. |
IN_PROC_BROWSER_TEST_F(PaymentRequestErrorMessageTest, CompleteFail) { |
- AddCreditCard(autofill::test::GetCreditCard()); // Visa |
+ autofill::AutofillProfile billing_profile(autofill::test::GetFullProfile()); |
+ PaymentRequestBrowserTestBase::AddAutofillProfile(billing_profile); |
+ autofill::CreditCard card(autofill::test::GetCreditCard()); // Visa |
+ card.set_billing_address_id(billing_profile.guid()); |
+ AddCreditCard(card); |
InvokePaymentRequestUI(); |
// We are ready to pay. |