Index: chrome/browser/ui/views/infobars/confirm_infobar.cc |
diff --git a/chrome/browser/ui/views/infobars/confirm_infobar.cc b/chrome/browser/ui/views/infobars/confirm_infobar.cc |
index 61f39beaa8bee3d8242495dc535eb3a0556339a5..dc2f92e15616b07e231bbdf267f8eb43c71cf4c6 100644 |
--- a/chrome/browser/ui/views/infobars/confirm_infobar.cc |
+++ b/chrome/browser/ui/views/infobars/confirm_infobar.cc |
@@ -9,6 +9,7 @@ |
#include "base/logging.h" |
#include "chrome/browser/infobars/infobar_service.h" |
#include "chrome/browser/ui/views/elevation_icon_setter.h" |
+#include "components/autofill/core/browser/autofill_cc_infobar_delegate.h" |
#include "components/infobars/core/confirm_infobar_delegate.h" |
#include "ui/base/resource/material_design/material_design_controller.h" |
#include "ui/base/window_open_disposition.h" |
@@ -23,6 +24,11 @@ scoped_ptr<infobars::InfoBar> InfoBarService::CreateConfirmInfoBar( |
return make_scoped_ptr(new ConfirmInfoBar(std::move(delegate))); |
} |
+scoped_ptr<infobars::InfoBar> InfoBarService::CreateAutofillCCInfoBar( |
+ scoped_ptr<autofill::AutofillCCInfoBarDelegate> delegate) { |
+ // Views uses a bubble instead of infobar for saving credit cards. |
+ return CreateConfirmInfoBar(std::move(delegate)); |
+} |
// ConfirmInfoBar ------------------------------------------------------------- |