diff options
Diffstat (limited to 'chrome/browser/autofill/autofill_manager.cc')
-rw-r--r-- | chrome/browser/autofill/autofill_manager.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/chrome/browser/autofill/autofill_manager.cc b/chrome/browser/autofill/autofill_manager.cc index 4558c5a..88e49ad 100644 --- a/chrome/browser/autofill/autofill_manager.cc +++ b/chrome/browser/autofill/autofill_manager.cc @@ -192,8 +192,10 @@ void CheckForPopularForms(const std::vector<FormStructure*>& forms, ASCIIToUTF16(form_signature), UTF8ToUTF16((*it)->source_url().spec())); - tab_contents_wrapper->infobar_tab_helper()->AddInfoBar( - new AutofillFeedbackInfoBarDelegate(tab_contents, text, link, + InfoBarTabHelper* infobar_helper = + tab_contents_wrapper->infobar_tab_helper(); + infobar_helper->AddInfoBar( + new AutofillFeedbackInfoBarDelegate(infobar_helper, text, link, message)); break; } @@ -680,8 +682,10 @@ void AutofillManager::ImportFormData(const FormStructure& submitted_form) { // it. scoped_ptr<const CreditCard> scoped_credit_card(imported_credit_card); if (imported_credit_card && tab_contents()) { - tab_contents_wrapper_->infobar_tab_helper()->AddInfoBar( - new AutofillCCInfoBarDelegate(tab_contents(), + InfoBarTabHelper* infobar_helper = + tab_contents_wrapper_->infobar_tab_helper(); + infobar_helper->AddInfoBar( + new AutofillCCInfoBarDelegate(infobar_helper, scoped_credit_card.release(), personal_data_, metric_logger_.get())); |