| Index: chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
|
| diff --git a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
|
| index 33b20f4e892b464e1ef06e3500a886654a6eaa01..a03826e62112fcc03aa185b47041626efd1a769e 100644
|
| --- a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
|
| +++ b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
|
| @@ -7,6 +7,7 @@
|
| #include "base/logging.h"
|
| #include "base/prefs/pref_service.h"
|
| #include "chrome/browser/api/infobars/infobar_service.h"
|
| +#include "chrome/browser/autofill/autofill_cc_infobar_delegate.h"
|
| #include "chrome/browser/autofill/password_generator.h"
|
| #include "chrome/browser/autofill/personal_data_manager_factory.h"
|
| #include "chrome/browser/password_manager/password_manager.h"
|
| @@ -40,10 +41,6 @@ TabAutofillManagerDelegate::~TabAutofillManagerDelegate() {
|
| HideAutofillPopup();
|
| }
|
|
|
| -InfoBarService* TabAutofillManagerDelegate::GetInfoBarService() {
|
| - return InfoBarService::FromWebContents(web_contents_);
|
| -}
|
| -
|
| PersonalDataManager* TabAutofillManagerDelegate::GetPersonalDataManager() {
|
| Profile* profile =
|
| Profile::FromBrowserContext(web_contents_->GetBrowserContext());
|
| @@ -105,6 +102,16 @@ void TabAutofillManagerDelegate::ShowAutofillSettings() {
|
| #endif // #if defined(OS_ANDROID)
|
| }
|
|
|
| +void TabAutofillManagerDelegate::ConfirmSaveCreditCard(
|
| + const AutofillMetrics& metric_logger,
|
| + const CreditCard& credit_card,
|
| + const base::Closure& save_card_callback) {
|
| + InfoBarService* infobar_service =
|
| + InfoBarService::FromWebContents(web_contents_);
|
| + AutofillCCInfoBarDelegate::Create(
|
| + infobar_service, &metric_logger, save_card_callback);
|
| +}
|
| +
|
| void TabAutofillManagerDelegate::ShowPasswordGenerationBubble(
|
| const gfx::Rect& bounds,
|
| const content::PasswordForm& form,
|
|
|