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