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

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: pkasting 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..ed2dc0ce98d5ab94dd2f25d556bb685c7e152995 100644
--- a/components/autofill/core/browser/autofill_cc_infobar_delegate.cc
+++ b/components/autofill/core/browser/autofill_cc_infobar_delegate.cc
@@ -107,12 +107,8 @@ base::string16 AutofillCCInfoBarDelegate::GetLinkText() const {
return l10n_util::GetStringUTF16(IDS_LEARN_MORE);
}
-bool AutofillCCInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) {
- autofill_client_->LinkClicked(
- GURL(kHelpURL),
- (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition);
-
- return false;
+GURL AutofillCCInfoBarDelegate::GetLinkURL() const {
+ return GURL(kHelpURL);
}
} // namespace autofill
« no previous file with comments | « components/autofill/core/browser/autofill_cc_infobar_delegate.h ('k') | components/autofill/core/browser/autofill_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698