Index: chrome/browser/autofill/autofill_manager.cc |
diff --git a/chrome/browser/autofill/autofill_manager.cc b/chrome/browser/autofill/autofill_manager.cc |
index d6f62d9a3f4a6f08d814cdc738c16ae8b92ba070..d609038f35bac10baa508375594c1ab16d25e18c 100644 |
--- a/chrome/browser/autofill/autofill_manager.cc |
+++ b/chrome/browser/autofill/autofill_manager.cc |
@@ -19,6 +19,7 @@ |
#include "base/string_util.h" |
#include "base/threading/sequenced_worker_pool.h" |
#include "base/utf_string_conversions.h" |
+#include "chrome/browser/api/infobars/infobar_tab_service.h" |
#include "chrome/browser/autofill/autocomplete_history_manager.h" |
#include "chrome/browser/autofill/autofill_cc_infobar_delegate.h" |
#include "chrome/browser/autofill/autofill_external_delegate.h" |
@@ -35,7 +36,6 @@ |
#include "chrome/browser/autofill/phone_number.h" |
#include "chrome/browser/autofill/phone_number_i18n.h" |
#include "chrome/browser/autofill/select_control_handler.h" |
-#include "chrome/browser/infobars/infobar_tab_helper.h" |
#include "chrome/browser/password_manager/password_manager.h" |
#include "chrome/browser/prefs/pref_service.h" |
#include "chrome/browser/profiles/profile.h" |
@@ -844,9 +844,10 @@ void AutofillManager::ImportFormData(const FormStructure& submitted_form) { |
// it. |
scoped_ptr<const CreditCard> scoped_credit_card(imported_credit_card); |
if (imported_credit_card && web_contents()) { |
- InfoBarTabHelper* infobar_helper = tab_contents_->infobar_tab_helper(); |
- infobar_helper->AddInfoBar( |
- new AutofillCCInfoBarDelegate(infobar_helper, |
+ InfoBarTabService* infobar_service = |
+ InfoBarTabService::ForTab(tab_contents_); |
+ infobar_service->AddInfoBar( |
+ new AutofillCCInfoBarDelegate(infobar_service, |
scoped_credit_card.release(), |
personal_data_, |
metric_logger_.get())); |