| 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 8d75ec226389dccc2450bee4dba5ba13a30e219e..45f97fbf82b5bc0c57f854b5dba1827daae8fd8d 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"
|
| @@ -24,6 +23,7 @@
|
| #include "chrome/common/url_constants.h"
|
| #include "components/autofill/content/browser/content_autofill_driver.h"
|
| #include "components/autofill/content/common/autofill_messages.h"
|
| +#include "components/autofill/core/browser/autofill_cc_infobar_delegate.h"
|
| #include "components/autofill/core/common/autofill_pref_names.h"
|
| #include "components/password_manager/content/browser/content_password_manager_driver.h"
|
| #include "content/public/browser/render_view_host.h"
|
| @@ -120,9 +120,9 @@ void ChromeAutofillClient::OnUnmaskVerificationResult(bool success) {
|
|
|
| void ChromeAutofillClient::ConfirmSaveCreditCard(
|
| const base::Closure& save_card_callback) {
|
| - InfoBarService* infobar_service =
|
| - InfoBarService::FromWebContents(web_contents());
|
| - AutofillCCInfoBarDelegate::Create(infobar_service, save_card_callback);
|
| + AutofillCCInfoBarDelegate::Create(
|
| + InfoBarService::FromWebContents(web_contents()), this,
|
| + save_card_callback);
|
| }
|
|
|
| bool ChromeAutofillClient::HasCreditCardScanFeature() {
|
| @@ -236,4 +236,10 @@ void ChromeAutofillClient::OnFirstUserGestureObserved() {
|
| new AutofillMsg_FirstUserGestureObservedInTab(routing_id()));
|
| }
|
|
|
| +void ChromeAutofillClient::LinkClicked(const GURL& url,
|
| + WindowOpenDisposition disposition) {
|
| + web_contents()->OpenURL(content::OpenURLParams(
|
| + url, content::Referrer(), disposition, ui::PAGE_TRANSITION_LINK, false));
|
| +}
|
| +
|
| } // namespace autofill
|
|
|