Index: chrome/browser/ui/autofill/chrome_autofill_client.cc |
diff --git a/chrome/browser/ui/autofill/chrome_autofill_client.cc b/chrome/browser/ui/autofill/chrome_autofill_client.cc |
index ca159ec0f37442f0cd4f97a2601ba3bc33dd2445..8418498dfa10c623da0b8f9bcec3e8ce88f180db 100644 |
--- a/chrome/browser/ui/autofill/chrome_autofill_client.cc |
+++ b/chrome/browser/ui/autofill/chrome_autofill_client.cc |
@@ -174,6 +174,7 @@ void ChromeAutofillClient::OnUnmaskVerificationResult( |
} |
void ChromeAutofillClient::ConfirmSaveCreditCardLocally( |
+ const CreditCard& card, |
const base::Closure& callback) { |
#if !defined(OS_ANDROID) |
if (IsSaveCardBubbleEnabled()) { |
@@ -187,16 +188,18 @@ void ChromeAutofillClient::ConfirmSaveCreditCardLocally( |
} |
#endif |
AutofillCCInfoBarDelegate::CreateForLocalSave( |
- InfoBarService::FromWebContents(web_contents()), callback); |
+ InfoBarService::FromWebContents(web_contents()), card, callback); |
} |
void ChromeAutofillClient::ConfirmSaveCreditCardToCloud( |
- const base::Closure& callback, |
- scoped_ptr<base::DictionaryValue> legal_message) { |
+ const CreditCard& card, |
+ scoped_ptr<base::DictionaryValue> legal_message, |
+ const base::Closure& callback) { |
// TODO(jdonnelly): Implement save card prompt for OS_IOS. |
#if defined(OS_ANDROID) |
AutofillCCInfoBarDelegate::CreateForUpload( |
- InfoBarService::FromWebContents(web_contents()), callback); |
+ InfoBarService::FromWebContents(web_contents()), card, |
+ std::move(legal_message), callback); |
#else |
// Do lazy initialization of SaveCardBubbleControllerImpl. |
autofill::SaveCardBubbleControllerImpl::CreateForWebContents(web_contents()); |