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

Unified Diff: components/autofill/core/browser/autofill_cc_infobar_delegate.cc

Issue 1361253002: Separate the URL of an infobar link with clicking on it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fit Created 5 years, 3 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: components/autofill/core/browser/autofill_cc_infobar_delegate.cc
diff --git a/components/autofill/core/browser/autofill_cc_infobar_delegate.cc b/components/autofill/core/browser/autofill_cc_infobar_delegate.cc
index 8a0d3c7416f477833b50ff463e4acd2147b2b500..958df428894e6e6216421455d202c702fcdfae6d 100644
--- a/components/autofill/core/browser/autofill_cc_infobar_delegate.cc
+++ b/components/autofill/core/browser/autofill_cc_infobar_delegate.cc
@@ -107,9 +107,13 @@ base::string16 AutofillCCInfoBarDelegate::GetLinkText() const {
return l10n_util::GetStringUTF16(IDS_LEARN_MORE);
}
+GURL AutofillCCInfoBarDelegate::GetLinkURL() const {
+ return GURL(kHelpURL);
+}
+
bool AutofillCCInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) {
autofill_client_->LinkClicked(
- GURL(kHelpURL),
+ GetLinkURL(),
(disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition);
return false;

Powered by Google App Engine
This is Rietveld 408576698