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

Unified Diff: net/dns/mdns_client_impl.cc

Issue 2837863004: Use base::OneShotTimer instead of base::Timer(false, false)
Patch Set: rebase Created 3 years, 8 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 | « net/base/network_throttle_manager_impl.cc ('k') | net/http/bidirectional_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/mdns_client_impl.cc
diff --git a/net/dns/mdns_client_impl.cc b/net/dns/mdns_client_impl.cc
index 8dbd6d3277e26611be3c7a2b12198d37d6993a65..023e9b899be87bdeb028ab43394737bf3965f9ec 100644
--- a/net/dns/mdns_client_impl.cc
+++ b/net/dns/mdns_client_impl.cc
@@ -422,9 +422,7 @@ void MDnsClientImpl::Core::QueryCache(
}
MDnsClientImpl::MDnsClientImpl()
- : clock_(new base::DefaultClock),
- cleanup_timer_(new base::Timer(false, false)) {
-}
+ : clock_(new base::DefaultClock), cleanup_timer_(new base::OneShotTimer) {}
MDnsClientImpl::MDnsClientImpl(std::unique_ptr<base::Clock> clock,
std::unique_ptr<base::Timer> timer)
« no previous file with comments | « net/base/network_throttle_manager_impl.cc ('k') | net/http/bidirectional_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698