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

Unified Diff: net/dns/mojo_host_resolver_impl.h

Issue 2389613002: Remove stl_util's deletion functions from net/dns/. (Closed)
Patch Set: rebase atop NDK fix Created 4 years, 1 month 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/mojo_host_resolver_impl.h
diff --git a/net/dns/mojo_host_resolver_impl.h b/net/dns/mojo_host_resolver_impl.h
index 8c9eb48cc446f4bbed8e83b5aefc4b61ec790007..29795efe1d03591d3c335f7a2eb68d1b735b45a7 100644
--- a/net/dns/mojo_host_resolver_impl.h
+++ b/net/dns/mojo_host_resolver_impl.h
@@ -5,6 +5,7 @@
#ifndef NET_DNS_MOJO_HOST_RESOLVER_IMPL_H_
#define NET_DNS_MOJO_HOST_RESOLVER_IMPL_H_
+#include <memory>
#include <set>
#include "base/macros.h"
@@ -47,7 +48,7 @@ class MojoHostResolverImpl {
// All pending jobs, so they can be cancelled when this service is destroyed.
// Owns all jobs.
- std::set<Job*> pending_jobs_;
+ std::set<std::unique_ptr<Job>> pending_jobs_;
base::ThreadChecker thread_checker_;

Powered by Google App Engine
This is Rietveld 408576698