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

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

Issue 12378055: Make autofill stop depending on InfoBarService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 7 years, 9 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/ui/autofill/tab_autofill_manager_delegate.cc
diff --git a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
index 33b20f4e892b464e1ef06e3500a886654a6eaa01..a03826e62112fcc03aa185b47041626efd1a769e 100644
--- a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
+++ b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
@@ -7,6 +7,7 @@
#include "base/logging.h"
#include "base/prefs/pref_service.h"
#include "chrome/browser/api/infobars/infobar_service.h"
+#include "chrome/browser/autofill/autofill_cc_infobar_delegate.h"
#include "chrome/browser/autofill/password_generator.h"
#include "chrome/browser/autofill/personal_data_manager_factory.h"
#include "chrome/browser/password_manager/password_manager.h"
@@ -40,10 +41,6 @@ TabAutofillManagerDelegate::~TabAutofillManagerDelegate() {
HideAutofillPopup();
}
-InfoBarService* TabAutofillManagerDelegate::GetInfoBarService() {
- return InfoBarService::FromWebContents(web_contents_);
-}
-
PersonalDataManager* TabAutofillManagerDelegate::GetPersonalDataManager() {
Profile* profile =
Profile::FromBrowserContext(web_contents_->GetBrowserContext());
@@ -105,6 +102,16 @@ void TabAutofillManagerDelegate::ShowAutofillSettings() {
#endif // #if defined(OS_ANDROID)
}
+void TabAutofillManagerDelegate::ConfirmSaveCreditCard(
+ const AutofillMetrics& metric_logger,
+ const CreditCard& credit_card,
+ const base::Closure& save_card_callback) {
+ InfoBarService* infobar_service =
+ InfoBarService::FromWebContents(web_contents_);
+ AutofillCCInfoBarDelegate::Create(
+ infobar_service, &metric_logger, save_card_callback);
+}
+
void TabAutofillManagerDelegate::ShowPasswordGenerationBubble(
const gfx::Rect& bounds,
const content::PasswordForm& form,

Powered by Google App Engine
This is Rietveld 408576698