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

Unified Diff: content/browser/ssl/ssl_policy.cc

Issue 1459473003: Add a WebContents getter callback in ResourceRequestInfo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Nasko's comments 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: content/browser/ssl/ssl_policy.cc
diff --git a/content/browser/ssl/ssl_policy.cc b/content/browser/ssl/ssl_policy.cc
index dab2a5aa1ecd98f5627175d19dc0cfa6fe705301..ed8d80b3499b38320712fbbb6c89e5d313db092a 100644
--- a/content/browser/ssl/ssl_policy.cc
+++ b/content/browser/ssl/ssl_policy.cc
@@ -232,17 +232,11 @@ void SSLPolicy::OnCertErrorInternal(SSLCertErrorHandler* handler,
CertificateRequestResultType result =
CERTIFICATE_REQUEST_RESULT_TYPE_CONTINUE;
GetContentClient()->browser()->AllowCertificateError(
- handler->render_process_id(),
- handler->render_frame_id(),
- handler->cert_error(),
- handler->ssl_info(),
- handler->request_url(),
- handler->resource_type(),
- overridable,
- strict_enforcement,
+ handler->GetManager()->controller()->GetWebContents(),
+ handler->cert_error(), handler->ssl_info(), handler->request_url(),
+ handler->resource_type(), overridable, strict_enforcement,
expired_previous_decision,
- base::Bind(&SSLPolicy::OnAllowCertificate,
- base::Unretained(this),
+ base::Bind(&SSLPolicy::OnAllowCertificate, base::Unretained(this),
make_scoped_refptr(handler)),
&result);
switch (result) {

Powered by Google App Engine
This is Rietveld 408576698