| 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 22d1ed920eb95e47e60ee495a4956c6acf864e4f..338b55ba13e51d2987684086ceadded58ea4bc6e 100644
|
| --- a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
|
| +++ b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
|
| @@ -5,8 +5,11 @@
|
| #include "chrome/browser/ui/autofill/tab_autofill_manager_delegate.h"
|
|
|
| #include "base/logging.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| #include "base/prefs/pref_service.h"
|
| #include "chrome/browser/api/infobars/infobar_service.h"
|
| +#include "chrome/browser/autofill/autofill_cc_import_confirmation_delegate.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 +43,6 @@ TabAutofillManagerDelegate::~TabAutofillManagerDelegate() {
|
| HideAutofillPopup();
|
| }
|
|
|
| -InfoBarService* TabAutofillManagerDelegate::GetInfoBarService() {
|
| - return InfoBarService::FromWebContents(web_contents_);
|
| -}
|
| -
|
| PersonalDataManager* TabAutofillManagerDelegate::GetPersonalDataManager() {
|
| Profile* profile =
|
| Profile::FromBrowserContext(web_contents_->GetBrowserContext());
|
| @@ -80,6 +79,13 @@ void TabAutofillManagerDelegate::ShowAutofillSettings() {
|
| #endif // #if defined(OS_ANDROID)
|
| }
|
|
|
| +void TabAutofillManagerDelegate::ShowAutofillCCImportConfirmation(
|
| + scoped_ptr<AutofillCCImportConfirmationDelegate> delegate) {
|
| + InfoBarService* infobar_service =
|
| + InfoBarService::FromWebContents(web_contents_);
|
| + AutofillCCInfoBarDelegate::Create(infobar_service, delegate.Pass());
|
| +}
|
| +
|
| void TabAutofillManagerDelegate::ShowPasswordGenerationBubble(
|
| const gfx::Rect& bounds,
|
| const content::PasswordForm& form,
|
|
|