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

Unified Diff: components/infobars/core/confirm_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
« no previous file with comments | « components/infobars/core/confirm_infobar_delegate.h ('k') | components/infobars/core/infobar_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/infobars/core/confirm_infobar_delegate.cc
diff --git a/components/infobars/core/confirm_infobar_delegate.cc b/components/infobars/core/confirm_infobar_delegate.cc
index daef8c1536e378967b41a85577d363425da1f0ad..16b93e6a30d014dd603ab00e93ccc2937b3f8fbf 100644
--- a/components/infobars/core/confirm_infobar_delegate.cc
+++ b/components/infobars/core/confirm_infobar_delegate.cc
@@ -45,8 +45,13 @@ base::string16 ConfirmInfoBarDelegate::GetLinkText() const {
return base::string16();
}
+GURL ConfirmInfoBarDelegate::GetLinkURL() const {
+ return GURL();
+}
+
bool ConfirmInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) {
- return true;
+ infobar()->owner()->OpenURL(GetLinkURL(), disposition);
+ return false;
}
ConfirmInfoBarDelegate::ConfirmInfoBarDelegate()
« no previous file with comments | « components/infobars/core/confirm_infobar_delegate.h ('k') | components/infobars/core/infobar_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698