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

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

Powered by Google App Engine
This is Rietveld 408576698