Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: ios/chrome/browser/ui/autofill/autofill_client_ios.mm

Issue 1540423004: Add card details and legal message to Android save credit card infobar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initial draft Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698