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

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: Fixed breakages on Android port. Created 5 years, 11 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
« no previous file with comments | « chrome/browser/ui/autofill/chrome_autofill_client.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4f728efcb86f276666af133cbcc387bfe231980d..da0ebcac07890e131d8e950f28936f40542cd994 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_frame_host.h"
@@ -121,9 +121,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() {
@@ -252,4 +252,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
« no previous file with comments | « chrome/browser/ui/autofill/chrome_autofill_client.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698