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

Unified Diff: chrome/browser/autofill/autofill_cc_infobar_delegate.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
« no previous file with comments | « chrome/browser/autofill/autofill_cc_infobar_delegate.h ('k') | chrome/browser/autofill/autofill_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_cc_infobar_delegate.cc
===================================================================
--- chrome/browser/autofill/autofill_cc_infobar_delegate.cc (revision 175396)
+++ chrome/browser/autofill/autofill_cc_infobar_delegate.cc (working copy)
@@ -17,6 +17,17 @@
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
+// static
+void AutofillCCInfoBarDelegate::Create(
+ InfoBarService* infobar_service,
+ const CreditCard* credit_card,
+ PersonalDataManager* personal_data,
+ const AutofillMetrics* metric_logger) {
+ infobar_service->AddInfoBar(scoped_ptr<InfoBarDelegate>(
+ new AutofillCCInfoBarDelegate(infobar_service, credit_card, personal_data,
+ metric_logger)));
+}
+
AutofillCCInfoBarDelegate::AutofillCCInfoBarDelegate(
InfoBarService* infobar_service,
const CreditCard* credit_card,
« no previous file with comments | « chrome/browser/autofill/autofill_cc_infobar_delegate.h ('k') | chrome/browser/autofill/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698