Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(914)

Unified Diff: chrome/browser/autofill/autofill_manager.cc

Issue 7810002: Move infobar handling to a tab helper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autofill/autofill_manager.cc
diff --git a/chrome/browser/autofill/autofill_manager.cc b/chrome/browser/autofill/autofill_manager.cc
index 6f0f8669583478b18b45b4bf83b3f97fd3a4c64c..c5d4755ea809e96b3e67a561177333c97ed3f51e 100644
--- a/chrome/browser/autofill/autofill_manager.cc
+++ b/chrome/browser/autofill/autofill_manager.cc
@@ -29,6 +29,7 @@
#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/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
@@ -209,7 +210,7 @@ void CheckForPopularForms(const std::vector<FormStructure*>& forms,
ASCIIToUTF16(form_signature),
UTF8ToUTF16((*it)->source_url().spec()));
- tab_contents_wrapper->AddInfoBar(
+ tab_contents_wrapper->infobar_tab_helper()->AddInfoBar(
new AutofillFeedbackInfoBarDelegate(tab_contents, text, link,
message));
break;
@@ -736,7 +737,7 @@ 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_->AddInfoBar(
+ tab_contents_wrapper_->infobar_tab_helper()->AddInfoBar(
new AutofillCCInfoBarDelegate(tab_contents(),
scoped_credit_card.release(),
personal_data_,

Powered by Google App Engine
This is Rietveld 408576698