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

Unified Diff: chrome/browser/ui/omnibox/alternate_nav_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: chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc
diff --git a/chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc b/chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc
index 36fd45d7cb1c727ae3dfa5509b2e3f723846f400..f0f3d35d4d13dcd3461c4e01d00f85ebe937a486 100644
--- a/chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc
+++ b/chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc
@@ -63,6 +63,10 @@ base::string16 AlternateNavInfoBarDelegate::GetLinkText() const {
return base::UTF8ToUTF16(match_.destination_url.spec());
}
+GURL AlternateNavInfoBarDelegate::GetLinkURL() const {
+ return match_.destination_url;
+}
+
bool AlternateNavInfoBarDelegate::LinkClicked(
WindowOpenDisposition disposition) {
// Tell the shortcuts backend to remove the shortcut it added for the original

Powered by Google App Engine
This is Rietveld 408576698