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

Unified Diff: net/test/url_request/url_request_hanging_read_job.cc

Issue 2595723002: Allow CertNetFetcher to be shutdown from the network thread (Closed)
Patch Set: update comments Created 3 years, 11 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
Index: net/test/url_request/url_request_hanging_read_job.cc
diff --git a/net/test/url_request/url_request_hanging_read_job.cc b/net/test/url_request/url_request_hanging_read_job.cc
index 74c680f241877afa2be459aa9ea154a958c77742..5223b297b4502e95ebdbc4c1bf132cf837b8b75a 100644
--- a/net/test/url_request/url_request_hanging_read_job.cc
+++ b/net/test/url_request/url_request_hanging_read_job.cc
@@ -92,6 +92,8 @@ void URLRequestHangingReadJob::GetResponseInfoConst(
}
void URLRequestHangingReadJob::StartAsync() {
+ if (is_done())
+ return;
set_expected_content_size(content_length_);
NotifyHeadersComplete();
}
« no previous file with comments | « net/cert_net/cert_net_fetcher_impl_unittest.cc ('k') | net/tools/cert_verify_tool/verify_using_path_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698