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

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: Modified AutofillCCInfoBarDelegate unit-tests. Created 6 years, 1 month 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 41f2aaac04d8301b7b0c872a2656b25f2ec994c2..f21d1f7229930995df1bf102cd9e03f9f0188438 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"
@@ -20,6 +19,7 @@
#include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
#include "chrome/browser/webdata/web_data_service_factory.h"
#include "chrome/common/url_constants.h"
+#include "components/autofill/content/browser/autofill_cc_infobar_delegate.h"
#include "components/autofill/content/browser/content_autofill_driver.h"
#include "components/autofill/content/common/autofill_messages.h"
#include "components/autofill/core/common/autofill_pref_names.h"
@@ -109,8 +109,8 @@ void ChromeAutofillClient::ConfirmSaveCreditCard(
const base::Closure& save_card_callback) {
InfoBarService* infobar_service =
InfoBarService::FromWebContents(web_contents_);
- AutofillCCInfoBarDelegate::Create(
- infobar_service, &metric_logger, save_card_callback);
+ AutofillCCInfoBarDelegate::Create(web_contents_, infobar_service,
+ &metric_logger, save_card_callback);
}
void ChromeAutofillClient::ShowRequestAutocompleteDialog(

Powered by Google App Engine
This is Rietveld 408576698