Index: ios/chrome/browser/ui/autofill/autofill_client_ios.mm |
diff --git a/ios/chrome/browser/ui/autofill/autofill_client_ios.mm b/ios/chrome/browser/ui/autofill/autofill_client_ios.mm |
index 37387a8a44869524466581835a352da8a93330c4..a83217b2a4dcb4e164d36958e53e4a95c0f8da8b 100644 |
--- a/ios/chrome/browser/ui/autofill/autofill_client_ios.mm |
+++ b/ios/chrome/browser/ui/autofill/autofill_client_ios.mm |
@@ -77,19 +77,22 @@ void AutofillClientIOS::OnUnmaskVerificationResult(PaymentsRpcResult result) { |
} |
void AutofillClientIOS::ConfirmSaveCreditCardLocally( |
- const base::Closure& callback) { |
+ const base::Closure& callback, |
+ const CreditCard& card) { |
// This method is invoked synchronously from |
// AutofillManager::OnFormSubmitted(); at the time of detecting that a form |
// was submitted, the WebContents is guaranteed to be live. Since the |
// InfoBarService is a WebContentsUserData, it must also be alive at this |
// time. |
- AutofillCCInfoBarDelegate::CreateForLocalSave(infobar_manager_, callback); |
+ AutofillCCInfoBarDelegate::CreateForLocalSave(infobar_manager_, callback, |
+ card); |
} |
void AutofillClientIOS::ConfirmSaveCreditCardToCloud( |
const base::Closure& callback, |
+ const CreditCard& card, |
scoped_ptr<base::DictionaryValue> legal_message) { |
- AutofillCCInfoBarDelegate::CreateForUpload(infobar_manager_, callback); |
+ AutofillCCInfoBarDelegate::CreateForUpload(infobar_manager_, callback, card); |
} |
void AutofillClientIOS::LoadRiskData( |