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

Unified Diff: chrome/browser/ui/autofill/chrome_autofill_client.cc

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: Edits Created 4 years, 11 months 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: 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());

Powered by Google App Engine
This is Rietveld 408576698