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

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: Simplify test Created 7 years, 10 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 4265af0e9086b60b9c8c62f8b24bd4ac930b25b1..908405caad08856098716d08fb41c89f2cdd8e51 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());
@@ -79,6 +76,16 @@ void TabAutofillManagerDelegate::ShowAutofillSettings() {
#endif // #if defined(OS_ANDROID)
}
+void TabAutofillManagerDelegate::ConfirmImportCC(
+ const AutofillMetrics& metric_logger,
+ const CreditCard& credit_card,
+ const base::Closure& import_callback) {
+ InfoBarService* infobar_service =
+ InfoBarService::FromWebContents(web_contents_);
+ AutofillCCInfoBarDelegate::Create(
+ infobar_service, &metric_logger, import_callback);
+}
+
void TabAutofillManagerDelegate::ShowPasswordGenerationBubble(
const gfx::Rect& bounds,
const content::PasswordForm& form,

Powered by Google App Engine
This is Rietveld 408576698