Chromium Code Reviews| Index: chromecast/browser/cast_content_browser_client.cc |
| diff --git a/chromecast/browser/cast_content_browser_client.cc b/chromecast/browser/cast_content_browser_client.cc |
| index 9793e68b6f0885a7d5025d6f78afd7a83e6cbe08..98ad74d46d391e3362d0245d20d33fcc82b3d279 100644 |
| --- a/chromecast/browser/cast_content_browser_client.cc |
| +++ b/chromecast/browser/cast_content_browser_client.cc |
| @@ -32,6 +32,7 @@ |
| #include "content/public/browser/client_certificate_delegate.h" |
| #include "content/public/browser/render_process_host.h" |
| #include "content/public/browser/resource_dispatcher_host.h" |
| +#include "content/public/browser/web_contents.h" |
| #include "content/public/common/content_descriptors.h" |
| #include "content/public/common/content_switches.h" |
| #include "content/public/common/url_constants.h" |
| @@ -195,7 +196,7 @@ void CastContentBrowserClient::AllowCertificateError( |
| } |
| void CastContentBrowserClient::SelectClientCertificate( |
| - WebContents* web_contents, |
| + content::WebContents* web_contents, |
| net::SSLCertRequestInfo* cert_request_info, |
| scoped_ptr<content::ClientCertificateDelegate> delegate) { |
| GURL requesting_url("https://" + cert_request_info->host_and_port.ToString()); |
| @@ -203,7 +204,6 @@ void CastContentBrowserClient::SelectClientCertificate( |
| if (!requesting_url.is_valid()) { |
| LOG(ERROR) << "Invalid URL string: " |
| << requesting_url.possibly_invalid_spec(); |
| - delegate->SelectClientCertificate(nullptr); |
|
davidben
2015/03/11 23:26:38
NOTE: This is a behavior change from before my CL.
davidben
2015/03/11 23:28:41
Er, to clarify, that's not a result of my change o
gunsch
2015/03/11 23:32:13
Hmm, is that really the case? Before your CL, this
davidben
2015/03/11 23:35:23
callback.run(NULL) is equivalent to SelectClientCe
gunsch
2015/03/11 23:59:53
Got it. I'll go with ContinueWithCertificate(nullp
|
| return; |
| } |
| @@ -223,7 +223,7 @@ void CastContentBrowserClient::SelectClientCertificate( |
| base::Unretained(this), requesting_url, |
| web_contents->GetRenderProcessHost()->GetID()), |
| base::Bind(&content::ClientCertificateDelegate::ContinueWithCertificate, |
| - delegate.Pass())); |
| + base::Owned(delegate.release()))); |
| } |
| net::X509Certificate* |