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

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

Issue 11644059: Change infobar creation to use a public static Create() method on the infobar delegate classes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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
===================================================================
--- chrome/browser/autofill/autofill_manager.cc (revision 175396)
+++ chrome/browser/autofill/autofill_manager.cc (working copy)
@@ -869,12 +869,8 @@
// it.
scoped_ptr<const CreditCard> scoped_credit_card(imported_credit_card);
if (imported_credit_card && web_contents()) {
- InfoBarService* infobar_service = manager_delegate_->GetInfoBarService();
- infobar_service->AddInfoBar(
- new AutofillCCInfoBarDelegate(infobar_service,
- scoped_credit_card.release(),
- personal_data_,
- metric_logger_.get()));
+ AutofillCCInfoBarDelegate::Create(manager_delegate_->GetInfoBarService(),
+ scoped_credit_card.release(), personal_data_, metric_logger_.get());
}
}
« no previous file with comments | « chrome/browser/autofill/autofill_cc_infobar_delegate.cc ('k') | chrome/browser/autofill/autofill_metrics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698