| Index: chrome/browser/autofill/autofill_manager.cc
|
| diff --git a/chrome/browser/autofill/autofill_manager.cc b/chrome/browser/autofill/autofill_manager.cc
|
| index eedeb9c4669b887955b00f59f90f27e90a04f9fe..d31e4abb65547be7f0c5888509d599d744e17581 100644
|
| --- a/chrome/browser/autofill/autofill_manager.cc
|
| +++ b/chrome/browser/autofill/autofill_manager.cc
|
| @@ -20,12 +20,11 @@
|
| #include "base/string_util.h"
|
| #include "base/threading/sequenced_worker_pool.h"
|
| #include "base/utf_string_conversions.h"
|
| -#include "chrome/browser/api/infobars/infobar_service.h"
|
| #include "chrome/browser/api/sync/profile_sync_service_base.h"
|
| #include "chrome/browser/autofill/autocheckout/whitelist_manager.h"
|
| #include "chrome/browser/autofill/autocheckout_manager.h"
|
| #include "chrome/browser/autofill/autocomplete_history_manager.h"
|
| -#include "chrome/browser/autofill/autofill_cc_infobar_delegate.h"
|
| +#include "chrome/browser/autofill/autofill_cc_import_confirmation_handler.h"
|
| #include "chrome/browser/autofill/autofill_country.h"
|
| #include "chrome/browser/autofill/autofill_external_delegate.h"
|
| #include "chrome/browser/autofill/autofill_field.h"
|
| @@ -65,6 +64,9 @@
|
| #include "ui/gfx/rect.h"
|
|
|
| typedef PersonalDataManager::GUIDPair GUIDPair;
|
| +
|
| +using autofill::AutofillCCImportConfirmationDelegate;
|
| +using autofill::AutofillCCImportConfirmationHandler;
|
| using base::TimeTicks;
|
| using content::BrowserThread;
|
| using content::RenderViewHost;
|
| @@ -925,12 +927,16 @@ void AutofillManager::ImportFormData(const FormStructure& submitted_form) {
|
| if (!personal_data_->ImportFormData(submitted_form, &imported_credit_card))
|
| return;
|
|
|
| - // If credit card information was submitted, show an infobar to offer to save
|
| - // it.
|
| + // If credit card information was submitted, prompt to save it.
|
| scoped_ptr<const CreditCard> scoped_credit_card(imported_credit_card);
|
| if (imported_credit_card && web_contents()) {
|
| - AutofillCCInfoBarDelegate::Create(manager_delegate_->GetInfoBarService(),
|
| - scoped_credit_card.release(), personal_data_, metric_logger_.get());
|
| + scoped_ptr<AutofillCCImportConfirmationDelegate> confirmation_delegate(
|
| + new AutofillCCImportConfirmationHandler(scoped_credit_card.Pass(),
|
| + personal_data_,
|
| + metric_logger_.get()));
|
| +
|
| + manager_delegate_->ShowAutofillCCImportConfirmation(
|
| + confirmation_delegate.Pass());
|
| }
|
| }
|
|
|
|
|