Index: chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.cc |
diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.cc b/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.cc |
index 86e0309d8e196fa287971ab5654a35651c917769..85d329c84a71f273be24d50373f8a12e566f4b5b 100644 |
--- a/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.cc |
+++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.cc |
@@ -58,13 +58,12 @@ int DataReductionProxyInfoBarDelegate::GetButtons() const { |
return BUTTON_NONE; |
} |
+GURL DataReductionProxyInfoBarDelegate::GetLinkURL() const { |
+ return GURL(link_url_); |
+} |
+ |
bool DataReductionProxyInfoBarDelegate::LinkClicked( |
WindowOpenDisposition disposition) { |
- InfoBarService::WebContentsFromInfoBar(infobar())->OpenURL( |
- content::OpenURLParams( |
- GURL(link_url_), |
- content::Referrer(), |
- (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition, |
- ui::PAGE_TRANSITION_LINK, false)); |
+ ConfirmInfoBarDelegate::LinkClicked(disposition); |
return true; |
} |