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

Unified Diff: chrome/browser/ui/autofill/chrome_autofill_client.cc

Issue 710453002: [Autofill] Componentize AutofillCCInfoBarDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses Sylvain's review comments. Created 6 years 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/ui/autofill/chrome_autofill_client.cc
diff --git a/chrome/browser/ui/autofill/chrome_autofill_client.cc b/chrome/browser/ui/autofill/chrome_autofill_client.cc
index 882e989bda4eda6d4d8c74936b095ce22ea963e0..e8d263261dd45f98a869c5f7be45ab25e46ac191 100644
--- a/chrome/browser/ui/autofill/chrome_autofill_client.cc
+++ b/chrome/browser/ui/autofill/chrome_autofill_client.cc
@@ -6,7 +6,6 @@
#include "base/logging.h"
#include "base/prefs/pref_service.h"
-#include "chrome/browser/autofill/autofill_cc_infobar_delegate.h"
#include "chrome/browser/autofill/personal_data_manager_factory.h"
#include "chrome/browser/infobars/infobar_service.h"
#include "chrome/browser/password_manager/chrome_password_manager_client.h"
@@ -136,13 +135,6 @@ void ChromeAutofillClient::OnVerificationFailure() {
card_unmask_view_->VerificationFailed();
}
-void ChromeAutofillClient::ConfirmSaveCreditCard(
- const base::Closure& save_card_callback) {
- InfoBarService* infobar_service =
- InfoBarService::FromWebContents(web_contents());
- AutofillCCInfoBarDelegate::Create(infobar_service, save_card_callback);
-}
-
bool ChromeAutofillClient::HasCreditCardScanFeature() {
return CreditCardScannerController::HasCreditCardScanFeature();
}
@@ -254,4 +246,8 @@ void ChromeAutofillClient::OnFirstUserGestureObserved() {
new AutofillMsg_FirstUserGestureObservedInTab(routing_id()));
}
+infobars::InfoBarManager* ChromeAutofillClient::GetInfoBarManager() {
+ return InfoBarService::FromWebContents(web_contents());
+}
+
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698