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

Unified Diff: net/dns/host_resolver_impl_fuzzer.cc

Issue 2116983002: Change HostResolver::Resolve() to take an std::unique_ptr<Request>* rather than a RequestHandle* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: net/dns/host_resolver_impl_fuzzer.cc
diff --git a/net/dns/host_resolver_impl_fuzzer.cc b/net/dns/host_resolver_impl_fuzzer.cc
index c9c9e170649f130e5b6f76e4406593c607934b22..1d3a0e87d4a7ecb2dbd85dd6fde9bb367cdbefaf 100644
--- a/net/dns/host_resolver_impl_fuzzer.cc
+++ b/net/dns/host_resolver_impl_fuzzer.cc
@@ -173,7 +173,7 @@ class DnsRequest {
// Cancel the request, if not already completed. Otherwise, does nothing.
void Cancel() {
if (is_running_)
- host_resolver_->CancelRequest(handle_);
+ handle_.reset();
is_running_ = false;
}
@@ -181,7 +181,7 @@ class DnsRequest {
net::FuzzedDataProvider* data_provider_;
std::vector<std::unique_ptr<DnsRequest>>* dns_requests_;
- net::HostResolver::RequestHandle handle_;
+ std::unique_ptr<net::HostResolver::Request> handle_;
net::AddressList address_list_;
bool is_running_;

Powered by Google App Engine
This is Rietveld 408576698