Index: chrome/browser/media/protected_media_identifier_infobar_delegate.cc |
diff --git a/chrome/browser/media/protected_media_identifier_infobar_delegate.cc b/chrome/browser/media/protected_media_identifier_infobar_delegate.cc |
index 780324ae60079b579753a3fb9e0aa919bbe18141..6c13a7093305cdd291ce0450c20020a19bcf31bb 100644 |
--- a/chrome/browser/media/protected_media_identifier_infobar_delegate.cc |
+++ b/chrome/browser/media/protected_media_identifier_infobar_delegate.cc |
@@ -57,11 +57,15 @@ base::string16 ProtectedMediaIdentifierInfoBarDelegate::GetLinkText() const { |
return l10n_util::GetStringUTF16(IDS_LEARN_MORE); |
} |
+GURL ProtectedMediaIdentifierInfoBarDelegate::GetLinkURL() const { |
+ return GURL(chrome::kEnhancedPlaybackNotificationLearnMoreURL); |
+} |
+ |
bool ProtectedMediaIdentifierInfoBarDelegate::LinkClicked( |
WindowOpenDisposition disposition) { |
InfoBarService::WebContentsFromInfoBar(infobar()) |
->OpenURL(content::OpenURLParams( |
- GURL(chrome::kEnhancedPlaybackNotificationLearnMoreURL), |
+ GetLinkURL(), |
content::Referrer(), |
(disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition, |
ui::PAGE_TRANSITION_LINK, false)); |