Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1285)

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 1459473003: Add a WebContents getter callback in ResourceRequestInfo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698