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

Unified Diff: ios/chrome/browser/infobars/infobar_manager_impl.cc

Issue 1540423004: Add card details and legal message to Android save credit card infobar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Edits Created 4 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: ios/chrome/browser/infobars/infobar_manager_impl.cc
diff --git a/ios/chrome/browser/infobars/infobar_manager_impl.cc b/ios/chrome/browser/infobars/infobar_manager_impl.cc
index 551268b8b76de86ffe642a90c7943c841a8622cb..f1e8af164ef0c094968b26585c104038475b5b6b 100644
--- a/ios/chrome/browser/infobars/infobar_manager_impl.cc
+++ b/ios/chrome/browser/infobars/infobar_manager_impl.cc
@@ -4,6 +4,9 @@
#include "ios/chrome/browser/infobars/infobar_manager_impl.h"
+#include <utility>
+
+#include "components/autofill/core/browser/autofill_cc_infobar_delegate.h"
#include "components/infobars/core/confirm_infobar_delegate.h"
#include "components/infobars/core/infobar.h"
#include "components/infobars/core/infobar_delegate.h"
@@ -62,7 +65,12 @@ int InfoBarManagerImpl::GetActiveEntryID() {
scoped_ptr<infobars::InfoBar> InfoBarManagerImpl::CreateConfirmInfoBar(
scoped_ptr<ConfirmInfoBarDelegate> delegate) {
- return ::CreateConfirmInfoBar(delegate.Pass());
+ return ::CreateConfirmInfoBar(std::move(delegate));
+}
+
+scoped_ptr<infobars::InfoBar> InfoBarManagerImpl::CreateAutofillCCInfoBar(
+ scoped_ptr<autofill::AutofillCCInfoBarDelegate> delegate) {
+ return ::CreateConfirmInfoBar(std::move(delegate));
}
void InfoBarManagerImpl::NavigationItemCommitted(

Powered by Google App Engine
This is Rietveld 408576698