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

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: 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 22d1ed920eb95e47e60ee495a4956c6acf864e4f..338b55ba13e51d2987684086ceadded58ea4bc6e 100644
--- a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
+++ b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
@@ -5,8 +5,11 @@
#include "chrome/browser/ui/autofill/tab_autofill_manager_delegate.h"
#include "base/logging.h"
+#include "base/memory/scoped_ptr.h"
#include "base/prefs/pref_service.h"
#include "chrome/browser/api/infobars/infobar_service.h"
+#include "chrome/browser/autofill/autofill_cc_import_confirmation_delegate.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 +43,6 @@ TabAutofillManagerDelegate::~TabAutofillManagerDelegate() {
HideAutofillPopup();
}
-InfoBarService* TabAutofillManagerDelegate::GetInfoBarService() {
- return InfoBarService::FromWebContents(web_contents_);
-}
-
PersonalDataManager* TabAutofillManagerDelegate::GetPersonalDataManager() {
Profile* profile =
Profile::FromBrowserContext(web_contents_->GetBrowserContext());
@@ -80,6 +79,13 @@ void TabAutofillManagerDelegate::ShowAutofillSettings() {
#endif // #if defined(OS_ANDROID)
}
+void TabAutofillManagerDelegate::ShowAutofillCCImportConfirmation(
+ scoped_ptr<AutofillCCImportConfirmationDelegate> delegate) {
+ InfoBarService* infobar_service =
+ InfoBarService::FromWebContents(web_contents_);
+ AutofillCCInfoBarDelegate::Create(infobar_service, delegate.Pass());
+}
+
void TabAutofillManagerDelegate::ShowPasswordGenerationBubble(
const gfx::Rect& bounds,
const content::PasswordForm& form,

Powered by Google App Engine
This is Rietveld 408576698