| 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 c221d09ae108ed360fe6376b147234cf8c9e28d7..a5cddba758911a027894c3be81da1e760b306641 100644
|
| --- a/chromecast/browser/cast_content_browser_client.cc
|
| +++ b/chromecast/browser/cast_content_browser_client.cc
|
| @@ -326,11 +326,13 @@ void CastContentBrowserClient::AllowCertificateError(
|
| bool overridable,
|
| bool strict_enforcement,
|
| bool expired_previous_decision,
|
| - const base::Callback<void(bool)>& callback,
|
| - content::CertificateRequestResultType* result) {
|
| + const base::Callback<void(content::CertificateRequestResultType)>&
|
| + callback) {
|
| // Allow developers to override certificate errors.
|
| // Otherwise, any fatal certificate errors will cause an abort.
|
| - *result = content::CERTIFICATE_REQUEST_RESULT_TYPE_CANCEL;
|
| + if (!callback.is_null()) {
|
| + callback.Run(content::CERTIFICATE_REQUEST_RESULT_TYPE_CANCEL);
|
| + }
|
| return;
|
| }
|
|
|
|
|