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

Unified Diff: ios/web/net/cert_verifier_block_adapter.cc

Issue 1231783003: WKWebView: Do not DCHECK on invalid CertVerifierBlockAdapter::Params. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months 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
« no previous file with comments | « ios/web/net/cert_verifier_block_adapter.h ('k') | ios/web/net/cert_verifier_block_adapter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/net/cert_verifier_block_adapter.cc
diff --git a/ios/web/net/cert_verifier_block_adapter.cc b/ios/web/net/cert_verifier_block_adapter.cc
index 0bdea0603d91c962a0b6856baa5013d8956b8b0b..31901000e9552f2f347735e6937008c50289b3e9 100644
--- a/ios/web/net/cert_verifier_block_adapter.cc
+++ b/ios/web/net/cert_verifier_block_adapter.cc
@@ -70,8 +70,7 @@ CertVerifierBlockAdapter::Params::~Params() {
void CertVerifierBlockAdapter::Verify(
const Params& params,
void (^completion_handler)(scoped_ptr<CertVerifyResult>, int)) {
- DCHECK(params.cert);
- DCHECK(params.hostname.size());
+ DCHECK(completion_handler);
scoped_refptr<VerificationContext> context(
new VerificationContext(params.cert));
@@ -82,7 +81,6 @@ void CertVerifierBlockAdapter::Verify(
params.ocsp_response, params.flags,
params.crl_set.get(), &(context->result),
callback, &(context->request), net_log_);
- DCHECK(status != ERR_INVALID_ARGUMENT);
if (status == ERR_IO_PENDING) {
// Completion handler will be called from |callback| when verification
« no previous file with comments | « ios/web/net/cert_verifier_block_adapter.h ('k') | ios/web/net/cert_verifier_block_adapter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698