Index: chrome/browser/gpu/three_d_api_observer.cc |
diff --git a/chrome/browser/gpu/three_d_api_observer.cc b/chrome/browser/gpu/three_d_api_observer.cc |
index a12c777abaa2663b6255594dac03f42c21e3fb8e..6a4af6107f10584dd5190689930fbe4bfcce9e59 100644 |
--- a/chrome/browser/gpu/three_d_api_observer.cc |
+++ b/chrome/browser/gpu/three_d_api_observer.cc |
@@ -46,6 +46,7 @@ class ThreeDAPIInfoBarDelegate : public ConfirmInfoBarDelegate { |
bool Accept() override; |
bool Cancel() override; |
base::string16 GetLinkText() const override; |
+ GURL GetLinkURL() const override; |
bool LinkClicked(WindowOpenDisposition disposition) override; |
GURL url_; |
@@ -149,10 +150,14 @@ base::string16 ThreeDAPIInfoBarDelegate::GetLinkText() const { |
return l10n_util::GetStringUTF16(IDS_LEARN_MORE); |
} |
+GURL ThreeDAPIInfoBarDelegate::GetLinkURL() const { |
+ return GURL("https://support.google.com/chrome/?p=ib_webgl"); |
+} |
+ |
bool ThreeDAPIInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) { |
InfoBarService::WebContentsFromInfoBar(infobar())->OpenURL( |
content::OpenURLParams( |
- GURL("https://support.google.com/chrome/?p=ib_webgl"), |
+ GetLinkURL(), |
content::Referrer(), |
(disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition, |
ui::PAGE_TRANSITION_LINK, false)); |