Index: chrome/browser/chrome_content_browser_client.cc |
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc |
index dd8724d2bf8d583a243a2ef823ee095be7b56c04..a6782a53559db91d295c3a0c8c81ca8ff4dcae66 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -1957,8 +1957,8 @@ ChromeContentBrowserClient::GetTemporaryStorageEvictionPolicy( |
} |
void ChromeContentBrowserClient::AllowCertificateError( |
- int render_process_id, |
- int render_frame_id, |
+ const content::ResourceRequestInfo::WebContentsGetterOnUI& |
+ web_contents_getter, |
davidben
2015/11/19 17:46:13
Rather than passing in this callback, it's probabl
clamy
2015/11/20 13:50:42
Since it's impossible not to have a WebContents he
|
int cert_error, |
const net::SSLInfo& ssl_info, |
const GURL& request_url, |
@@ -1978,9 +1978,7 @@ void ChromeContentBrowserClient::AllowCertificateError( |
} |
// If the tab is being prerendered, cancel the prerender and the request. |
- content::RenderFrameHost* render_frame_host = |
- content::RenderFrameHost::FromID(render_process_id, render_frame_id); |
- WebContents* tab = WebContents::FromRenderFrameHost(render_frame_host); |
+ WebContents* tab = web_contents_getter.Run(); |
if (!tab) { |
NOTREACHED(); |
return; |