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 e9d87562a8b12e079bc893994071e8c0457f3528..e7bd80f906d1392945ed5475aba4452447f6e7b4 100644 |
--- a/chrome/browser/ui/autofill/chrome_autofill_client.cc |
+++ b/chrome/browser/ui/autofill/chrome_autofill_client.cc |
@@ -62,6 +62,8 @@ |
#if defined(OS_ANDROID) |
#include "base/android/context_utils.h" |
#include "chrome/browser/android/signin/signin_promo_util_android.h" |
+#include "components/autofill/core/browser/autofill_assist_infobar_delegate_mobile.h" |
+#include "components/autofill/core/browser/autofill_assist_infobar_mobile.h" |
#include "components/autofill/core/browser/autofill_save_card_infobar_delegate_mobile.h" |
#include "components/autofill/core/browser/autofill_save_card_infobar_mobile.h" |
#include "components/infobars/core/infobar.h" |
@@ -211,6 +213,16 @@ void ChromeAutofillClient::ConfirmSaveCreditCardToCloud( |
#endif |
} |
+void ChromeAutofillClient::ConfirmCreditCardFillAssist( |
+ const CreditCard& card, |
+ const base::Closure& callback) { |
+#if defined(OS_ANDROID) |
+ InfoBarService::FromWebContents(web_contents()) |
+ ->AddInfoBar(CreateAssistInfoBar(base::WrapUnique( |
+ new AutofillAssistInfoBarDelegateMobile(card, callback)))); |
+#endif |
+} |
+ |
void ChromeAutofillClient::LoadRiskData( |
const base::Callback<void(const std::string&)>& callback) { |
::autofill::LoadRiskData(0, web_contents(), callback); |