Index: chrome/browser/three_d_api_observer.cc |
diff --git a/chrome/browser/three_d_api_observer.cc b/chrome/browser/three_d_api_observer.cc |
index 94d3b38a44e4c5db3fb5ac2731221ca0b2c5381c..545bd28ca88436b62d3d04f763edcc61d703ca41 100644 |
--- a/chrome/browser/three_d_api_observer.cc |
+++ b/chrome/browser/three_d_api_observer.cc |
@@ -132,7 +132,8 @@ bool ThreeDAPIInfoBarDelegate::Cancel() { |
UMA_HISTOGRAM_ENUMERATION("GPU.ThreeDAPIInfoBarDismissal", RELOADED, |
DISMISSAL_MAX); |
content::GpuDataManager::GetInstance()->UnblockDomainFrom3DAPIs(url_); |
- web_contents()->GetController().Reload(true); |
+ InfoBarService::WebContentsFromInfoBar(infobar())->GetController().Reload( |
+ true); |
return true; |
} |
@@ -141,12 +142,12 @@ base::string16 ThreeDAPIInfoBarDelegate::GetLinkText() const { |
} |
bool ThreeDAPIInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) { |
- web_contents()->OpenURL(content::OpenURLParams( |
- GURL("https://support.google.com/chrome/?p=ib_webgl"), |
- content::Referrer(), |
- (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition, |
- content::PAGE_TRANSITION_LINK, |
- false)); |
+ InfoBarService::WebContentsFromInfoBar(infobar())->OpenURL( |
+ content::OpenURLParams( |
+ GURL("https://support.google.com/chrome/?p=ib_webgl"), |
+ content::Referrer(), |
+ (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition, |
+ content::PAGE_TRANSITION_LINK, false)); |
return false; |
} |